*{
    transition: all 0.2s;
}
:root {
    --main-color: #db1616;
    --main-color-light: #de8787;
}


/* Обновляем все стили использовать CSS переменные */
body.night-theme .avatars_link {
    color: var(--main-color);
}

.avatars_link {
    color: var(--main-color);
}

body.night-theme .ep>a:hover,
body.night-theme .ep1>a:hover,
body.night-theme .menu__item > a:hover {
    color: var(--main-color);
}

body.night-theme .title.active {
    border-top-color: var(--main-color);
    color: var(--main-color);
}

/* Обновите ВСЕ цвета в ваших CSS файлах, заменяя:
   #db1616 → var(--main-color)
   #de8787 → var(--main-color-light)
   #3ad422 → var(--main-color) (в ночной теме)
   #90e384 → var(--main-color-light) (в ночной теме) */

.pjscssed{
    border-radius: 15px;
}
.night-theme-btn {
    position: relative;
    border: none;
    outline: none;
    width: 64px;
    height: 64px;
    border-radius: 15px;
    background-color: rgba(198, 66, 66, 0.5);
    transition: filter .4s, background-color .4s;
    cursor: pointer;
}
.pjscssed {
  transition: all 0.2s;
  box-shadow: 0px 2px 8px 0px rgb(43, 36, 43);
  border: solid 1px black;
}
body.night-theme .pjscssed {
  transition: all 0.2s;
  background-color: #272727;
  box-shadow: 0px 2px 8px 0px rgb(60, 60, 60);
  border: solid 1px #323232;
  color: #d4d4d4;
}
body.night-theme .ep {
  transition: all 0.2s;
  background-color: #272727;
  box-shadow: 0px 2px 8px 0px rgb(60, 60, 60);
  border: solid 1px #323232;
  color: #d4d4d4;
}
body.night-theme .ep1 {
  transition: all 0.2s;
  background-color: #272727;
  box-shadow: 0px 2px 4px 0px rgb(60, 60, 60);
  border: solid 1px #323232;
  color: #d4d4d4;
}
body.night-theme .ep0 {
  transition: all 0.2s;
  background-color: rgba(147, 147, 147, 0.15);
  box-shadow: 0px 2px 4px 0px rgb(60, 60, 60);
  border: solid 1px #323232;
  color: #d4d4d4;
}
.night-theme-btn:hover {
    filter: brightness(120%);
}
.night-theme-btn:active {
    filter: brightness(80%);
}
.night-theme-btn__icon {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 40px;
    height: 40px;
    margin-left: -20px;
    margin-top: -20px;
    opacity: 0;
    transition: opacity .15s;
}
.night-theme-btn__icon circle,
.night-theme-btn__icon path {
    fill: rgba(0, 0, 0, .3);
}
.night-theme-btn__icon_moon {
    opacity: 1;
}
body.night-theme .dropbtn {
    color: #d4d4d4;
}
body {
    transition: background-color .4s, color .4s;
}
body.night-theme .menu{
    box-shadow: 7px 0px 12px rgba(180, 162, 180, 0.5);
    background-color: rgb(23, 23 ,23);
    border: solid 1px #323232;
}
body.night-theme .header.open .header__burger-btn span {
    color: #d4d4d4;
    background-color: #d4d4d4;
}
body.night-theme {
    background-color: rgb(23, 23 ,23);
    color: #d4d4d4;
}
body.night-theme a{
  text-decoration: none;
  color: #d4d4d4;
}
body.night-theme .ep1>a:hover{  
    color: var(--main-color);
  transform: scale(1.15);
}
body.night-theme .ep>a:hover{  
    color: var(--main-color);
  transform: scale(1.15);
}
body.night-theme .menu__item > a:hover {
  color: var(--main-color);
  transition: all 0.2s;
}
body.night-theme .topnav {
  background-color: rgb(23, 23 ,23);
  box-shadow: 5px 0px 20px 0px rgba(255, 255, 255, 0.3);
}
body.night-theme>a:hover {
    color: rgb(22, 202, 7);
}
body.night-theme .title.active {
    border-top: 3px solid var(--main-color);
  color: var(--main-color);
}
body.night-theme .night-theme-btn {
    background-color: rgba(138, 223, 80, 0.5);
}
body.night-theme .night-theme-btn__icon_moon {
    opacity: 0;
}
body.night-theme .night-theme-btn__icon_sun {
    opacity: 1;
}
body.night-theme .header__burger-btn span {
    background-color: #d4d4d4;
}
.work>h6>a{
    color: blue;
}
.Dub>h6>a{
    color: blue;
}
@media screen and (min-width: 1190px) {
	body{
		height:100%;
	}
}
.sneg {
  background-color: #ffe4c400;
}
body.night-theme .footer {
  color: #d4d4d4;
  border: 1px solid var(--main-color);
  background-color: var(--main-color-dark-opaque)
  /*! border-bottom: none; */
}
/* Общие стили */
.topnav-wrapper {
    width: 100%;
    position: relative;
    /*! height: ; */
}
.topnav-text-container {
    width: 100%;
    padding: 10px 15px;
    background-color: #f2f2f2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    font-family: Pompadur, 'site', cursive;
    text-align: center;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}
.text-items-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
    max-width: 1200px;
}
.text-item {
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: rgb(43, 36, 43);
    font-size: 15px;
    white-space: nowrap;
    text-decoration: none;
    border: none;
    outline: none;
}
.text-item:hover {
    background-color: var(--bg-color-light);
    color: var(--main-color);
}
.text-bold {
    font-weight: bold;
}
.text-underlined {
    text-decoration: underline;
    text-decoration-skip-ink: none;
}
/* Темная тема */
body.night-theme .topnav-text-container {
    background-color: rgb(23, 23, 23);
    box-shadow: 0 2px 5px rgba(255,255,255,0.05);
}
body.night-theme .text-item {
    color: #d4d4d4;
    background-color: rgba(34, 34, 34, 0.7);
}
body.night-theme .text-item:hover {
    color: var(--main-color);
    background-color: var(--bg-color-dark);
}
/* Адаптивность */
@media screen and (max-width: 768px) {
    .topnav-text-container {
        padding: 8px 10px;
    }
    .text-item {
        padding: 4px 8px;
        font-size: 14px;
        white-space: normal;
    }
}

body.night-theme .spinner {
  border: 3px solid rgba(128, 128, 128, 0.5);
  border-top: 3px solid var(--main-color);
}
  body.night-theme #searchInput {
    background-color: #333;
    color: #d4d4d4;
    border: 1px solid #444;
  }

  body.night-theme .results-count {
    color: #d4d4d4;
  }

  body.night-theme #clearSearch {
    color: #d4d4d4;
  }
body.night-theme #searchInput {
    background-color: #333;
    color: #d4d4d4;
    border: 1px solid #444;
}

body.night-theme #searchInput:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 5px var(--main-color);
}

body.night-theme .results-count {
    color: #d4d4d4;
}

body.night-theme .search-results-title {
    color: #d4d4d4;
}

body.night-theme #clearSearch {
    color: #d4d4d4;
}

body.night-theme #clearSearch:hover {
    color: rgb(22, 202, 7);
}
body.night-theme .results-count strong {
    color: var(--main-color);
}
body.night-theme .views-counter {
    color: #d4d4d4;
}

.notifications-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    max-width: 350px;
}

.notification {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
    transition: all 0.3s ease;
    border-left: 4px solid #4CAF50;
}

body.night-theme .notification {
    background: #2d2d2d;
    color: #fff;
}

.notification-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.notification-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 10px;
}

.notification-message {
    flex: 1;
    font-size: 14px;
}

.notification-link {
    display: block;
    color: #4CAF50;
    text-decoration: none;
    font-size: 13px;
    margin-top: 5px;
}

.notification-close {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #888;
}

.notification-close:hover {
    color: #333;
}

body.night-theme .notification-close {
    color: #aaa;
}

body.night-theme .notification-close:hover {
    color: #fff;
}

.fade-out {
    opacity: 0;
    transform: translateX(-20px);
}
body.night-theme .color-theme-selector {
  background-color: var(--main-color-dark-opaque);
}