:root {
  --bg: #02010f;
  --fg: #eaeaea;
  --muted: #a7a7a7;
  --accent: #1d97f1;
  --card: #161616;
  --blur-bg: rgba(0,0,0,.5);
}

:root[data-theme="light"] {
  --bg: #ffffff;
  --fg: #101010;
  --muted: #4d4d4d;
  --card: #f4f4f4;
  --blur-bg: rgba(255,255,255,.6);
}

* { box-sizing: border-box; margin:0; padding:0; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}


img {
    -webkit-user-drag: none;     
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    
    user-select: none;            
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    
    pointer-events: none;       
}


button img, .btn img {
    pointer-events: none; 
}


.text-gradient-blue {
    background: linear-gradient(135deg, #1d97f1 0%, #0d6efd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


.header {
  position: sticky; top: 0; z-index: 50;
  display: flex; gap: 12px; align-items: center;
  padding: 10px 16px;
  background: var(--bg);
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.header .logo { font-weight: 800; letter-spacing: .5px; }
.header .search { flex: 1; }
.header input[type="text"] {
  margin-left: 50px;
    width: 50%;
    padding: 10px 12px;
    border: 1px solid #1d97f1;
    border-radius: 8px;
    background: #16161600;
    color: var(--fg);
}


/* Глобальное удаление подчеркивания */
a { text-decoration: none; color: var(--fg); transition: color .2s; }
a:hover { color: var(--accent); } 
/* ... (остальные стили body и т.д. остаются) ... */

/* Улучшение Header */
.header .auth-icons { /* Добавляем класс для контейнера иконок */
  display: flex;
  gap: 15px;
  align-items: center;
  margin-left:auto;
}
.header .auth-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  border-radius: 50%;
  transition: background .2s, color .2s;
}

.header .auth-icons span {
    display: none; /* Скрываем текст */
}



.layout {
  display: grid; grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.sidebar {
  position: sticky; top: 105px; height: calc(100vh - 52px);
  padding: 16px;
  background: var(--blur-bg);
  backdrop-filter: blur(12px);
  border-right: 1px solid rgba(255,255,255,.07);
}
.sidebar a { display: block; color: var(--fg); text-decoration: none; padding: 8px 0; opacity:.9 }
.sidebar a:hover { opacity: 1 }

main {
    min-width: 0;
    padding: 16px;
}
.grid {
margin-top: 15px;
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* ---- карточки фильмов ---- */
/*========== MOVIE CARD ==========*/
.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  display: block;
  background: #000;
  cursor: pointer;
  transition: transform .25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
}

.poster-wrap {
  position: relative;
}

.poster-img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
}

/* Градиент снизу */
.gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 40%, rgb(0 0 0 / 80%) 70%);
  pointer-events: none;
}

/* Текст */
.info {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  z-index: 5;
  color: #fff;
}

.info .title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  text-shadow: 0 1px 3px rgba(0,0,0,.8);
}

.info .bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Год */
.year {
  font-size: 14px;
  opacity: .9;
  font-weight: 600;
}

/*========== RATING CIRCLE SMALL ==========*/
.sm-rating-circle {
  width: 32px;
  height: 32px;
}

.sm-rating-circle svg text {
  font-size: 10px;
}

.sm-rating-circle svg .bg {
  stroke-width: 4;
  stroke: rgba(255,255,255,0.2);
}

.sm-rating-circle svg .progress {
  stroke-width: 4;
  stroke: #2196F3;
}

/*========== PLAY ICON ==========*/
.play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  background: rgba(0,0,0,0.45);
  transition: .25s ease;
}

.play-icon i {
  font-size: 42px;
  color: #1ea0ff;
  
}

/* ПРИ НАВЕДЕНИИ */
.movie-card:hover .play-icon {
  opacity: 1;
}

/*========== DISABLE HOVER ON MOBILE ==========*/
@media (hover: none) {
  .movie-card:hover .play-icon {
    opacity: 0;
  }
  .movie-card:hover {
    transform: none;
  }
}


/* ---- пагинация ---- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 40px 0 20px;
}

.pagination .page {
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--card);
  color: var(--fg);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.08);
  transition: all .25s ease;
}

.pagination .page:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 6px rgba(255,59,59,.4);
}

.pagination .page.current {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(255,59,59,.5);
  pointer-events: none;
}

.pagination .dots {
  color: var(--muted);
  padding: 0 4px;
}

.progress-bar {
  height: 12px; background: #232323; border-radius: 999px; overflow: hidden; border:1px solid #333;
}
.progress-bar > span { display:block; height:100%; background: var(--accent); width: 0%; }

.footer { padding: 40px 16px; color: var(--muted); text-align:center }

@media (max-width: 1024px){
  .layout { grid-template-columns: 64px 1fr; }
  .sidebar { padding: 12px; }
}















/* ---- ПРОФИЛЬ ---- */
.profile-stats {
    display: flex;
    gap: 40px;
    align-items: center;
    padding: 20px;
    border-radius: 12px;
    background: var(--card);
}

.level-progress-circle {
    position: relative;
    width: 80%;
    height: 80%;
}
.level-progress-circle svg {
    transform: rotate(-90deg);
}
.level-progress-circle .bg {
    fill: none;
    stroke: #333;
    stroke-width: 5px;
}


.level-number {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
}
.level-number span {
    font-size: 40px;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
}

/* ---- РЕЙТИНГ ---- */
.ranking-table{
    width: 100%;
}

.ranking-table th {
    font-weight: 700;
}
.ranking-table tr.leader {
    background: rgba(255, 165, 0, 0.1);
    color: orange;
    font-weight: bold;
}
.ranking-level {
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    background: #015aa9;
    color: #fff;
    font-size: 12px;
}


/* ---- МАГАЗИН ---- */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    width: 90%;
    max-width: 1200px;
    margin: 40px 40px;
}

@media (max-width: 990px) {
    .shop-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на планшетах */
    }
}
@media (max-width: 600px) {
    .shop-grid {
        grid-template-columns: 1fr; /* 1 колонка на мобильных */
    }
}

.shop-item {
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s;
}
.shop-item i {
    font-size: 48px;
    margin-bottom: 10px;
}
.shop-item h3 {
    margin-top: 0;
}
.shop-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.shop-item.telegram { background: #0088cc; }
.shop-item.ps { background: #0072ce; }
.shop-item.steam { background: #171a21; }

@media (max-width: 768px) {
    .profile-stats {
        flex-direction: column;
        align-items: center;
    }
    .stats-text {
        text-align: center;
    }
}




/* ---- Аватар в профиле ---- */
.avatar-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.current-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
}
.avatar-form input[type="file"] {
    display: none;
}
.btn-upload {
    background: #555;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background .2s;
}
.btn-upload:hover {
    background: #777;
}



/* ---- РЕЙТИНГ АВАТАРЫ ---- */
.ranking-table th:nth-child(2),
.ranking-table td:nth-child(2) {
    width: 50px;
}
.ranking-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #444;
}


.shop-item.freebets { background: #ffc107; } /* Желтый для монеток */
.shop-item.crypto { background: #f7931a; } /* Оранжевый для крипты */
.shop-item.coupons { background: #00bcd4; } /* Голубой для купонов */





.profile-layout {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr 2fr;
    margin-top: 20px;
}
.profile-card {
    padding: 20px;
    border-radius: 12px;
    background: var(--card);
}
.avatar-referral-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.ref-code-value {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--accent);
    letter-spacing: 1px;
}
.small-info {
    font-size: 0.8em;
    color: var(--muted);
    line-height: 1.4;
}
.flash-error { color:#ff6767; padding: 10px; margin-bottom: 10px; border: 1px solid #ff6767; border-radius: 6px; }
.flash-success { color:#3cff3c; padding: 10px; margin-bottom: 10px; border: 1px solid #3cff3c; border-radius: 6px; }

.stats-text {
    margin-top: 20px;
    text-align: center;
}
.level-progress-circle {
    margin: 0 auto;
}
.stats-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.card-title {
    margin-top: 0;
    font-size: 1.4em;
    color: var(--fg);
}
/* Адаптация профиля */
@media (max-width: 768px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }
}

/* ---- РЕФЕРАЛЬНЫЙ СПИСОК В ПРОФИЛЕ ---- */
.referral-list-container {
    margin-top: 15px;
}
.referral-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.05);
    font-size: 0.9em;
}
.ref-status {
    font-weight: 600;
}
.status-awarded {
    color: #3cff3c;
}
.referral-count-cell {
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
}





/* ---- ФОРМЫ (ВХОД/РЕГИСТРАЦИЯ) ---- */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 100px); /* Центрирование по вертикали */
}
.auth-card {
    background: var(--card); 
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.1); 
}
.auth-title {
    text-align: center;
    margin-top: 0;
    margin-bottom: 25px;
    font-weight: 800;
    /* Градиентный заголовок */
    background: linear-gradient(90deg, #1D97F1, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.auth-form {
    display: grid;
    gap: 15px;
}
.auth-form input {
    width: 100%;
    padding: 14px;
    border: 2px solid #555; 
    border-radius: 6px;
    background: var(--bg); /* Еще более темный фон для поля */
    color: var(--fg);
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.auth-form input:focus {
    border-color: var(--accent); 
    outline: none;
    box-shadow: 0 0 8px rgba(255, 59, 59, 0.5); /* Неоновый эффект */
}
.auth-form button {
    padding: 12px;
    background: var(--accent); 
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 10px;
}
.auth-form button:hover {
    background: #e03232;
    transform: translateY(-1px);
}
.auth-switch {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9em;
    color: var(--muted);
}
.auth-switch a {
    color: var(--accent);
    font-weight: 600;
}

.guest-links{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}


/* =========================================
   ФИНАЛЬНЫЙ ДИЗАЙН ШАПКИ (Вставить в конец app.css)
   ========================================= */

/* 1. Общий контейнер правой части */

.header-svg-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;  /* Ширина кнопки */
    height: 50px; /* Высота кнопки */
    border-radius: 8px; /* Легкое закругление при наведении */
    transition: background 0.2s, transform 0.2s;
}



.header-svg-btn img {
    width: 28px; /* Размер самой иконки внутри кнопки */
    height: 28px;
    object-fit: contain;
    display: block;
}

.header .auth-icons {
    display: flex;
    align-items: center; /* Центрируем всё по вертикали */
    justify-content: flex-end;
    gap: 10px !important; /* Большой отступ между блоками (тема / сердце / профиль) */
    margin-left: auto;
    height: 100%; /* На всю высоту шапки */
}

/* 2. Блоки иконок (Фонарик, Сердце) */
.header-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px; /* Фиксируем высоту, чтобы они были одинаковыми */
    width: 40px;  /* Квадратная зона клика */
}

/* Сама иконка сердца */
.header-icon-btn {
    font-size: 24px;
    color: #fff;
    transition: color 0.2s, transform 0.2s;
    display: flex;       /* Чтобы иконка центрировалась внутри ссылки */
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.header-icon-btn:hover {
    color: var(--accent);
    transform: scale(1.1);
}

/* 3. БЛОК ПРОФИЛЯ (Ссылка-обертка) */
.header-profile-block {
    display: flex;
    align-items: center;
    gap: 15px; /* Отступ между прогресс-баром и аватаркой */
    text-decoration: none;
    background: transparent; /* Убираем фон (кружок) */
    border: none;            /* Убираем границы */
    padding: 0;              /* Убираем внутренние отступы */
    cursor: pointer;
}

/* Убираем любые эффекты при наведении на весь блок */
.header-profile-block:hover {
    background: transparent;
    opacity: 1;
}
/* Но можно добавить легкую прозрачность при нажатии для отклика */
.header-profile-block:active {
    opacity: 0.8;
}

/* 4. Инфо-блок (Текст + Полоска) */
.hp-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Прижимаем к правому краю (к аватарке) */
    justify-content: center;
    /* Делаем широким, как просили (шире аватарки в ~2.5 раза) */
    width: 70px; 
}



/* Сброс стилей для кнопки темы */
.theme-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0; /* Чтобы размеры контролировались классом header-svg-btn */
}



/* Текст уровня */
.hp-level {
    font-size: 14px;      /* Чуть крупнее */
    font-weight: 900;     /* Жирнее */
    color: var(--accent);       /* Акцентный цвет */
    text-transform: uppercase;
    margin-bottom: 6px;   /* Отступ до полоски */
    line-height: 1;
    white-space: nowrap;  /* ЗАПРЕЩАЕМ перенос строки */
}

/* Контейнер прогресс-бара */
.hp-progress-container {
    width: 100%;          /* Занимает все 120px ширины */
    height: 3px;          /* Чуть толще */
    background-color: #333 !important; /* Темно-серый фон */
    border-radius: 4px;
    overflow: hidden;
}

/* Заполнение прогресс-бара */
.hp-progress-fill {
    height: 100%;
    background-color: var(--accent) !important;
    border-radius: 4px;
    display: block;
    min-width: 5px;       /* Чтобы всегда было видно начало */
}

/* 5. Аватарка */
.hp-avatar {
box-sizing: content-box;
    width: 28px;         /* Размер аватарки */
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    background-color: #000;
    flex-shrink: 0;      /* Запрещаем сжиматься */
}

/* Кнопка выхода */
.logout-btn {
    color: #777;
    font-size: 20px;
    display: flex;
    align-items: center;
}
.logout-btn:hover {
    color: #fff;
}



/* =========================================
   НОВЫЙ ПРОФИЛЬ (3 БЛОКА В РЯД)
   ========================================= */


.profile-header-title h1 { font-size: 28px; font-weight: 700; }

/* Сетка */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}
@media (max-width: 992px) {
    .profile-grid { grid-template-columns: 1fr; }
}

/* Карточка */
.profile-card {
    background: var(--card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgb(255 255 255 / 22%) inset;
}

/* БЛОК 1 и 2 (Оставляем стили, они были хорошими) */
.profile-big-avatar { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); margin-bottom: 15px; background: #000; }
.btn-change-avatar { display: inline-block; background: rgba(255,255,255,0.08); color: #ccc; padding: 6px 16px; border-radius: 20px; font-size: 13px; cursor: pointer; transition: 0.3s; margin-bottom: 25px; }
.btn-change-avatar:hover { background: var(--accent); color: #fff; }
.referral-section { width: 100%; margin-bottom: 20px; }
.ref-label { font-size: 12px; color: #888; margin-bottom: 6px; text-transform: uppercase; }
.ref-code { background: #0a0a0a; padding: 12px; border-radius: 8px; font-family: monospace; font-size: 18px; color: #fff; border: 1px dashed #333; cursor: pointer; }
.ref-code:hover { border-color: var(--accent); color: var(--accent); }
.invite-info { margin-top: auto; }
.promo-coins-img { height: 70px; object-fit: contain; }

.history-list-wrap {margin-top: 15px; width: 100%; flex: 1; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.history-item { display: flex; align-items: center; background: rgba(255,255,255,0.03); padding: 12px; border-radius: 10px; margin-bottom: 8px; text-align: left; }
.h-icon img { width: 28px; height: 28px; margin-right: 12px; }
.h-info { flex: 1; overflow: hidden; }
.h-title { font-size: 13px; color: #eee; }
.h-date { font-size: 11px; color: #666; margin-top: 2px; }
.h-amount { font-weight: 800; color: #f5d40c; font-size: 15px; }
.fade-overlay { position: absolute; bottom: 0; left: 0; right: 0; height: 80px; background: linear-gradient(to bottom, transparent, var(--card)); pointer-events: none; }

/* === БЛОК 3: УРОВЕНЬ (С КРУГОМ) === */
.level-header { font-size: 20px; font-weight: 900; text-transform: uppercase; color: #fff; margin-bottom: 5px; }
.balance-text { font-size: 15px; color: #999; margin-bottom: 20px; }
.accent-text { color: var(--accent); font-weight: bold; }

/* Контейнер для круга */
.level-progress-circle {
    position: relative;
    width: 80%;  /* Размер круга */
    height: 80%;
    margin: 0 auto 20px auto;
}

/* Сам SVG круг */
.level-progress-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg); /* Начало сверху */
}

/* Фон линии круга */
.level-progress-circle .bg {
    fill: none;
    stroke: #222; /* Темно-серый трек */
    stroke-width: 4; /* ТОЛСТАЯ ЛИНИЯ */
}

/* Прогресс (цветная линия) */


/* Контейнер внутри круга (для сундука) */
.inner-circle-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Свечение */
.glow-spot {
   position: absolute;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    background: radial-gradient(circle, rgb(122 199 255 / 30%) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 1;
    animation: chestGlow 3s infinite alternate;
}
@keyframes chestGlow {
    0% { transform: scale(0.9); opacity: 0.6; }
    100% { transform: scale(1.1); opacity: 1; }
}

/* Картинка сундука */
.chest-img {
    width: 70%;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.5));
}

.level-footer {
    font-size: 14px;
    color: #ccc;
    background: rgba(255,255,255,0.03);
    padding: 10px 15px;
    border-radius: 8px;
    width: 100%;
    margin-top: auto;
}



/* =========================================
   РЕФЕРАЛЫ (НОВЫЙ ДИЗАЙН)
   ========================================= */

/* Табы */
.ref-tabs {
    display: flex;
    background: rgba(0,0,0,0.3);
    padding: 4px;
    border-radius: 8px;
}
.ref-tab {
    background: transparent;
    border: none;
    color: #888;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 6px;
    transition: 0.2s;
    font-weight: 600;
}
.ref-tab.active {
    background: var(--card); /* Или цвет посветлее */
    color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.ref-tab:hover:not(.active) {
    color: #ccc;
}

/* Строка реферала */
.referral-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: background 0.2s;
}
.referral-row:hover {
    background: rgba(255,255,255,0.02);
}
.referral-row:last-child {
    border-bottom: none;
}

/* Левая часть: Аватар + Инфо */
.ref-user {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ref-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #000;
    border: 1px solid #333;
}
.ref-details {
    display: flex;
    flex-direction: column;
}
.ref-nick {
    font-size: 14px;
    font-weight: 700;
    color: #eee;
}
.ref-lvl {
    font-size: 11px;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
}

/* Плашки (Badges) */
.ref-badge {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Серый (Не выполнено) */
.badge-gray {
    background: rgba(255,255,255,0.08);
    color: #999;
    border: 1px solid rgba(255,255,255,0.05);
}

/* Зеленый (Выполнено) */
.badge-green {
    background: rgb(76 140 175 / 15%);
    color: #f5d40c;
    border: 1px solid rgb(76 115 175 / 30%);
}

.empty-tab {
    padding: 30px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

@media (max-width: 600px) {
    .referral-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .ref-badge {
        width: 100%;
        justify-content: center;
    }
}


/* ГРАДИЕНТНЫЙ НИКНЕЙМ */
.nickname-gradient {
font-weight: 800;
    background: #1d97f1;
    background: linear-gradient(90deg, #dbc19d, #dbc19d);
    text-transform: uppercase;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}



/* ========================
   ПОИСК (DROPDOWN)
   ======================== */
.search-container {
    flex: 1;
    position: relative; /* Чтобы абсолютный список был привязан сюда */
    margin-left: 20px;
    max-width: 600px;
}

.header-search-form input {
    width: 100%;
    margin-left: 0; /* Сброс старого стиля */
    padding: 10px 15px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--fg);
    border-radius: 20px;
    transition: 0.2s;
}
.header-search-form input:focus {
    background: rgba(255,255,255,0.1);
    border-color: var(--accent);
    outline: none;
}

/* Выпадающий список */
.search-results-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a1a; /* Темный фон */
    border: 1px solid #333;
    border-radius: 8px;
    margin-top: 5px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 1000;
}

.search-item {
    display: flex;
    align-items: center;
    padding: 10px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.1s;
}
.search-item:hover {
    background: rgba(255,255,255,0.05);
}
.search-item:last-child { border-bottom: none; }

.search-item-img {
    width: 40px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 12px;
}
.search-item-info {
    flex: 1;
}
.search-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #eee;
    margin-bottom: 3px;
}
.search-item-year {
    font-size: 12px;
    color: #888;
}
.search-no-results {
    padding: 15px;
    text-align: center;
    color: #777;
    font-size: 13px;
}

/* На мобильных */
@media (max-width: 600px) {
    .search-container {
        /* На мобильных можно скрыть и показывать иконкой, 
           но пока просто уменьшим ширину */
        margin-left: 10px;
        margin-right: 10px;
    }
}

/* ========================
   КНОПКА АДМИНКИ (В ПРОФИЛЕ)
   ======================== */
.admin-panel-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(45deg, #c0392b, #e74c3c);
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}
.admin-panel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6);
}


/* ========================
   КРАСИВЫЙ СКРОЛЛБАР (ПОИСК)
   ======================== */

/* Для Firefox */
.search-results-dropdown {
    scrollbar-width: thin; /* Тонкий скролл */
    scrollbar-color: #444 transparent; /* Цвет ползунка и фона */
}

/* Для Chrome, Edge, Safari */
.search-results-dropdown::-webkit-scrollbar {
    width: 6px; /* Ширина всего 6px */
}

.search-results-dropdown::-webkit-scrollbar-track {
    background: transparent; /* Фон трека прозрачный */
    border-radius: 3px;
}

.search-results-dropdown::-webkit-scrollbar-thumb {
    background-color: #444; /* Темно-серый цвет в обычном состоянии */
    border-radius: 3px;     /* Закругленные края */
}

.search-results-dropdown::-webkit-scrollbar-thumb:hover {
    background-color: var(--accent); /* Акцентный цвет (синий) при наведении */
}


/* === ГЛОБАЛЬНЫЙ СКРОЛЛБАР (для всего сайта) === */

/* Ширина скролла */
::-webkit-scrollbar {
    width: 10px; /* Чуть шире для основной страницы */
}

/* Фон дорожки */
::-webkit-scrollbar-track {
    background: var(--bg); /* Цвет фона сайта */
}

/* Ползунок */
::-webkit-scrollbar-thumb {
    background-color: #333;
    border-radius: 5px;
    border: 2px solid var(--bg); /* Отступ от края */
}

/* Ползунок при наведении */
::-webkit-scrollbar-thumb:hover {
    background-color: var(--accent);
}


/* =========================================
   ОБНОВЛЕННЫЙ САЙДБАР (FIXED LAYOUT)
   ========================================= */

/* Исправляем поведение сайдбара */
.logo-img1{
    height: 80px;
}



.sidebar {
    position: sticky;       /* Липкое позиционирование */
    top: 105px;              /* Отступ сверху (высота шапки + отступ) */
    height: calc(100vh - 65px); /* Высота ровно на оставшийся экран */
    overflow-y: auto;       /* Если контент не влезает — скроллим ВНУТРИ панели */
    overflow-x: hidden;
    padding: 20px 16px;     /* Внутренние отступы */
    background: transparent; /* Убираем фон, чтобы сливался (или var(--blur-bg)) */
    border-right: 1px solid rgba(255,255,255,0.07);
    
    /* Flex чтобы прижать промо вниз или распределить место */
    display: flex;
    flex-direction: column;
    gap: 30px;
    
    /* Скрываем скроллбар визуально, но оставляем функционал */
    scrollbar-width: none; 
}
.sidebar::-webkit-scrollbar { display: none; }

/* Стили меню навигации */
.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    border-radius: 12px;
    color: var(--muted);
    font-weight: 600;
    transition: 0.2s;
}
.sidebar nav a:hover, 
.sidebar nav a.active {
    background: rgba(255,255,255,0.05);
    color: #fff;
}
.sidebar nav a i {
    font-size: 18px;
    width: 24px;
    text-align: center;
    color: var(--accent);
}

/* === ПРОМО БЛОК В МЕНЮ === */
.sidebar-promo {
    
    text-align: center;
    padding-bottom: 20px;
}

/* Слоган */
.promo-slogan {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
    text-transform: uppercase;
    /* Градиентный текст */
    background: linear-gradient(90deg, #fff, #a3a3a3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
/* Выделяем "мы платим" цветом */
.promo-slogan span {
    display: block;
    font-size: 26px;
    background: linear-gradient(90deg, #ffffff, #dbc19d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Кнопка "Участвовать" */
.promo-btn {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    background: var(--accent);
    color: #fff !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    box-shadow: 0 0 15px rgba(29, 151, 241, 0.4);
    margin-bottom: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(29, 151, 241, 0.6);
}

/* Баннер */
.promo-banner {
    width: 95%; /* Чуть меньше ширины панели */
    aspect-ratio: 1/1; /* Квадратный или прямоугольный */
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

/* Текст описания */
.promo-desc {
    font-size: 14px;
    color: #868686;
    line-height: 1.5;
    text-align: center;
    padding: 0 5px;
}




.level-progress-circle .progress {
    fill: none;
    stroke-width: 4;
    transition: stroke-dashoffset 1s ease-out;
}



/* === ОНОВЛЕНИЕ: СЕТКА И ДИЗАЙН === */

/* Backdrop (Фон) */
.backdrop-container {
    position: absolute; top: 0; left: 0; width: 100%; height: 500px; z-index: 0; overflow: hidden;
}
.backdrop-img {
    width: 100%; height: 100%; background-size: cover; background-position: center top;  opacity: 0.3;
}
.backdrop-overlay {
    position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 0%, var(--bg) 100%);
}

.video-content-wrapper {
    position: relative; z-index: 2;
    max-width: 1200px; margin: 0 auto; padding: 20px;
}

/* === ВЕРХНЯЯ СЕТКА (2 Колонки) === */
.video-top-grid {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 30px;
    margin-bottom: 40px;
}

/* Левая колонка (Инфо) */
.movie-header-flex {
    display: flex; gap: 25px;
}
.movie-poster-block {
    width: 220px; flex-shrink: 0;
}
.movie-poster-block img {
    width: 100%; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.user-rating-mini {
    margin-top: 15px; text-align: center;
    background: rgba(255,255,255,0.05); padding: 10px; border-radius: 8px;
}
.rate-hint { font-size: 11px; color: #777; margin-top: 5px; }

/* Текст фильма */
.movie-title-h1 {
    font-size: 36px; line-height: 1.2; margin: 0 0 15px 0;
    color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.movie-meta-row {
    display: flex; align-items: center; gap: 20px; margin-bottom: 20px;
}
.rating-circle-md svg { width: 50px; height: 50px; }
.rating-circle-md text { font-weight: bold; fill: #fff; font-size: 14px; }
.rating-circle-md .bg { stroke: rgba(255,255,255,0.1); stroke-width: 4; fill: none; }
.rating-circle-md .progress { stroke: var(--accent); stroke-width: 4; fill: none; stroke-dasharray: 126; stroke-dashoffset: 0; transform: rotate(-90deg); transform-origin: center; }

.meta-tags span {
    display: inline-block; margin-right: 10px; color: #ccc; font-size: 14px;
}
.meta-genres { color: var(--accent) !important; font-weight: 600; }

.movie-description {
    font-size: 15px; line-height: 1.6; color: #ddd; margin-bottom: 20px;
}
.movie-cast { font-size: 14px; color: #bbb; margin-bottom: 25px; }
.cast-row { margin-bottom: 5px; }

/* Кнопки действий */
.movie-actions { display: flex; gap: 15px; }
.action-btn {
    width: 50px; height: 50px; border-radius: 50%; border: none;
    background: rgba(255,255,255,0.1); color: #fff; font-size: 20px;
    cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center;
}
.action-btn:hover { background: var(--accent); transform: scale(1.1); }
.action-btn.active { color: #ff4757; } /* Для лайка */

/* === ПРАВАЯ КОЛОНКА (ПРОМО) === */
.promo-sticky-box {
    position: sticky; top: 80px;
    background: #0d0a18;
    padding: 20px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}
.promo-header {
    font-weight: 800; font-size: 18px; margin-bottom: 15px; letter-spacing: 1px;
}
.neon-green {
    color: #ddcf29;
    text-shadow: 0 0 10px rgb(255 212 0 / 40%);
}
.promo-vertical-img {
    width: 100%; border-radius: 12px; margin-bottom: 15px;
    object-fit: cover; aspect-ratio: 1/1.2; /* Вертикальная ориентация */
}
.promo-cta-btn {
    display: block; width: 100%; padding: 12px; background: var(--accent);
    color: #fff; font-weight: 800; border-radius: 8px; text-decoration: none;
    margin-bottom: 15px; transition: 0.2s; box-shadow: 0 0 15px rgba(29,151,241,0.4);
}
.promo-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 0 25px rgba(29,151,241,0.6); color: #ffffff;}
.promo-text { font-size: 12px; line-height: 1.5; color: #888; }


/* === НИЖНЯЯ СЕКЦИЯ === */
.seo-h1-title {
    font-size: 24px; margin-bottom: 20px; color: #fff;
}
.player-wrapper {
    width: 100%; background: #000; border-radius: 16px; overflow: hidden; margin-bottom: 40px;
}
.player-wrapper video { width: 100%; height: auto; display: block; max-height: 700px; }

/* Смотрите также */
.section-title { font-size: 22px; margin-bottom: 20px; border-left: 4px solid var(--accent); padding-left: 15px; }
.similar-grid {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; margin-bottom: 40px;
}
.similar-card { text-decoration: none; transition: 0.2s; }
.similar-card:hover { transform: translateY(-5px); }
.sim-poster { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 2/3; margin-bottom: 8px; }
.sim-poster img { width: 100%; height: 100%; object-fit: cover; }
.sim-rating {
    position: absolute; top: 5px; right: 5px; background: rgba(0,0,0,0.7);
    color: #ffd700; padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: bold;
}
.sim-title { font-size: 13px; color: #ddd; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Адаптив */
@media (max-width: 900px) {
    .video-top-grid { grid-template-columns: 1fr; }
    .movie-header-flex { flex-direction: column; }
    .movie-poster-block { width: 160px; margin: 0 auto; }
    .movie-text-info { text-align: center; }
    .movie-meta-row { justify-content: center; }
    .movie-actions { justify-content: center; }
    .similar-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Toast */
.toast {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
    background: rgba(29, 151, 241, 0.9); color: #fff;
    padding: 12px 24px; border-radius: 30px; font-weight: 600;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    opacity: 0; visibility: hidden; transition: 0.3s; z-index: 9999;
}
.toast.show { opacity: 1; visibility: visible; bottom: 50px; }

/* Смотрите также */
.section-title { 
    font-size: 22px; 
    margin-bottom: 20px; 
    border-left: 4px solid var(--accent); 
    padding-left: 15px; 
}

/* ================================================= */
/* === ЖЕЛЕЗОБЕТОННАЯ СЕТКА (5 на ПК, 4 на Моб) === */
/* ================================================= */

/* ============================================================== */
/* === FLEXBOX СЕТКА "СМОТРИТЕ ТАКЖЕ" (ФИНАЛЬНАЯ ВЕРСИЯ) === */
/* ============================================================== */

.similar-grid {
    display: flex;
    flex-wrap: wrap; /* Разрешаем перенос на новую строку */
    gap: 20px;       /* Отступы между карточками */
    margin-bottom: 40px;
    justify-content: flex-start; /* Прижимаем влево */
}

/* === КАРТОЧКА === */
.similar-card {
    display: block;
    text-decoration: none;
    position: relative;
    
    /* НА ПК: 5 штук в ряд. 
       Формула: (100% - (4 отступа по 20px)) / 5 карточек 
       Это дает идеально ровную ширину */
    flex: 0 0 calc((100% - 80px) / 5);
    max-width: calc((100% - 80px) / 5);
    
    transition: transform 0.2s;
}

.similar-card:hover {
    transform: translateY(-5px);
}

/* === ПОСТЕР (РОВНЯЕМ КАРТИНКИ) === */
.sim-poster {
    width: 100%;
    position: relative;
    /* МАГИЯ РОВНОСТИ: Задаем пропорцию 2 (ширина) к 3 (высота) */
    aspect-ratio: 2 / 3; 
    border-radius: 8px;
    overflow: hidden;
    background: #111; /* Фон, если картинка не загрузилась */
}

.sim-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Растягивает и обрезает, чтобы заполнить блок */
    display: block;
}

/* Рейтинг */
.sim-rating {
    position: absolute; top: 6px; right: 6px;
    background: rgba(0,0,0,0.8); color: #ffd700;
    padding: 2px 6px; border-radius: 4px;
    font-size: 11px; font-weight: 700; z-index: 2;
}

/* Название */
.sim-title {
    margin-top: 8px;
    font-size: 13px; color: #ddd; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}


/* ========================================== */
/* === МОБИЛЬНАЯ ВЕРСИЯ (ТЕЛЕФОНЫ < 768px) === */
/* ========================================== */

@media (max-width: 768px) {
    .similar-grid {
        gap: 10px; /* Уменьшаем отступ на телефоне */
    }

    .similar-card {
        /* НА ТЕЛЕФОНЕ: 2 штуки в ряд.
           Формула: (100% - 10px отступ) / 2 */
        flex: 0 0 calc((100% - 10px) / 2);
        max-width: calc((100% - 10px) / 2);
    }

    /* СКРЫВАЕМ 5-й ФИЛЬМ */
    /* Чтобы осталось ровно 4 (2 ряда по 2) */
    .similar-card:nth-child(3) {
        display: none;
    }
    .similar-card:nth-child(4) {
        display: none;
    }
    .similar-card:nth-child(5) {
        display: none;
    }
}



html {
    scroll-behavior: smooth;
}

/* 1. Кнопка "СМОТРЕТЬ" */
.btn-watch-anchor {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 0;
    margin-top: 15px;
    background: var(--accent);
    color: #fff !important;
    font-weight: 800;
    font-size: 14px;
    border-radius: 8px;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(29, 151, 241, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.btn-watch-anchor:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(29, 151, 241, 0.5);
    color: #fff;
}

/* 2. Блок рейтинга под постером */
.user-rating-mini {
    margin-top: 15px;
    text-align: center;
    background: rgba(255,255,255,0.03); /* Очень легкий фон */
    padding: 15px 10px; /* Отступы внутри */
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.site-rating-num {
    margin-bottom: 10px;
    line-height: 1.2;
}

/* 3. ЗВЕЗДЫ (ФИКС ПЕРЕНОСА) */
.stars-container {
    display: flex;             /* Включаем флекс */
    justify-content: space-between; /* Растягиваем звезды по всей ширине */
    align-items: center;
    width: 100%;               /* Строго по ширине родителя */
    padding: 0 2px;            /* Минимальный отступ от краев */
}

.star {
    font-size: 16px;           /* Размер звезды (подбираем, чтобы влезло 10 шт) */
    cursor: pointer;
    color: #444;               /* Цвет пустой звезды */
    transition: color 0.2s, transform 0.1s;
    flex: 1;                   /* Каждая звезда занимает равное место */
    text-align: center;
}

/* Убираем лишние отступы, которые могли быть раньше */
.star i {
    display: block;
}

/* При наведении чуть увеличиваем */
.star:hover {
    transform: scale(1.2);
}

.rate-hint {
    font-size: 11px;
    color: #666;
    margin-top: 8px;
    font-weight: 500;
}




/* ======================================================= */
/* === РАЗДЕЛЕНИЕ СТИЛЕЙ КНОПОК И ФИКС СОРТИРОВКИ === */
/* ======================================================= */

/* 1. БОЛЬШИЕ КРУГЛЫЕ КНОПКИ (ПОД ПОСТЕРОМ) */
.btn-hero {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: 0.2s;
    display: flex; 
    align-items: center; 
    justify-content: center;
}
.btn-hero:hover {
    background: var(--accent);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(29, 151, 241, 0.4);
}
.btn-hero.active {
    color: #ff4757; /* Красное сердце при лайке */
    background: rgba(255, 71, 87, 0.1);
}

/* 2. МАЛЕНЬКИЕ КНОПКИ В КОММЕНТАРИЯХ */
.btn-comment {
    background: transparent;
    border: none;
    color: #888;
    font-size: 13px;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.2s;
    display: inline-flex; 
    align-items: center; 
    gap: 6px;
}
.btn-comment:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}
.btn-comment.active { 
    color: var(--accent); /* Цвет лайка в комментах */
}
/* Кнопка удаления (мусорка) */
.btn-comment.delete-btn:hover {
    color: #ff4757; 
}

/* 3. ФИКС СОРТИРОВКИ (ВЫПАДАЮЩИЙ СПИСОК) */
.comments-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 10px;
}

#commentSort {
    background: #111;
    color: #fff;
    border: 1px solid #333;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    outline: none;
}
#commentSort:hover {
    border-color: #555;
}


/* =========================================
   ТЕПЛОЕ СВЕЧЕНИЕ (WARM GLOW) - ИСПРАВЛЕНО
   ========================================= */

.warm-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    /* Теплый оранжево-золотой градиент */
    background: radial-gradient(circle, rgba(255, 160, 50, 0.6) 0%, rgba(255, 100, 0, 0) 70%);
    filter: blur(20px); /* Сильнее размытие для мягкости */
    pointer-events: none;
    animation: warmPulse 3s infinite alternate ease-in-out;
}

@keyframes warmPulse {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.7; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

/* 1. Настройки для АВАТАРКИ */
.avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Обертка, чтобы пятно было ровно за фото */
.avatar-glow-wrapper {
    position: relative; /* Пятно будет позиционироваться от этого блока */
    width: 110px;       /* Ширина аватарки */
    height: 110px;      /* Высота аватарки */
    margin-bottom: 15px;
    z-index: 1;
}

/* Размер пятна за аватаром (110px * 1.5 ≈ 170px) */
.avatar-glow-wrapper .warm-glow {
    width: 180px;
    height: 180px;
    z-index: -1; /* За картинку */
}

/* Сбрасываем маргины у самой картинки, так как они теперь у обертки */
.profile-big-avatar {
    margin-bottom: 0 !important; 
    position: relative;
    z-index: 2;
}


/* 2. Настройки для СУНДУКА (Круг уровня) */
.inner-circle-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 5;
}

.inner-circle-content .warm-glow {
    width: 80%;
    height: 80%;
    z-index: -1;
}

.chest-img {
    position: relative;
    z-index: 2;
}



/* =========================================
   ПРОМО БЛОК СПРАВА (ГРАДИЕНТНЫЙ ТЕКСТ)
   ========================================= */

.promo-header-gradient {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    margin-bottom: 20px;
    
    /* Серебристый градиент для верхней строки */
    background: linear-gradient(90deg, #fff, #a3a3a3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.promo-header-gradient span {
    display: block;       /* Перенос на новую строку */
    font-size: 26px;      /* Нижняя строка крупнее */
    margin-top: 5px;      /* Отступ между строками */
    
    /* Золото-синий градиент (как в левом меню) */
    background: linear-gradient(90deg, #dbc19d, #ffd25f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}



/* Разделители в поиске */
.search-section-header {
    padding: 8px 15px;
    font-size: 10px;
    font-weight: 700;
    color: #888;
    background: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #333;
}

/* Мини-рейтинг в поиске */
.rating-badge-mini {
    background: #1d97f1;
    color: #fff;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 10px;
    margin-left: 5px;
}

/* Стили для строки персоны */
.search-item-person {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid #222;
    transition: background 0.2s;
}
.search-item-person:hover {
    background: #252525;
}
.person-row {
    display: flex;
    align-items: center;
    width: 100%;
}
.person-icon {
    margin-right: 10px;
    color: #555;
    font-size: 16px;
}
.p-name {
    flex-grow: 1;
    font-weight: 500;
}
.p-count {
    font-size: 11px;
    color: #666;
    background: #111;
    padding: 2px 6px;
    border-radius: 10px;
}



.theme-btn {
    display: none !important;
}




.search-container {
    flex-grow: 1;          
    margin: 0 40px;       
    max-width: 800px;     
}

.header input[type="text"] {
    margin-left: 0px !important;
    width: 100% !important;
    padding: 10px 12px;
    border: 1px solid #dfc6a475;
    border-radius: 8px;
    background: #16161600;
    color: var(--fg);
}



.footer {
    border-top: 1px solid #1f1f1f;
    padding: 40px 0;
    margin-top: auto; 
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}
.footer-logo img {
    height: 70px; 
    opacity: 0.8;
}
.footer-text {
    color: #555;
    font-size: 12px;
    line-height: 1.6;
    max-width: 800px;
}
.footer-contact-link {
    color: #888;
    text-decoration: none;
    font-size: 13px;
    transition: 0.3s;
    border: 1px solid #333;
    padding: 8px 15px;
    border-radius: 20px;
}
.footer-contact-link:hover {
    color: #fff;
    border-color: #1d97f1;
    background: rgba(29, 151, 241, 0.1);
}


.promo-header-gradient span {
        font-size: 24px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }
    
    .coin-icon-small {
        width: 24px;
        height: 24px;
        object-fit: contain;
    }