:root {
  --theme-surface: rgba(7, 13, 18, 0.96);
  --theme-surface-strong: rgba(5, 8, 11, 0.98);
  --theme-border: rgba(30, 73, 91, 0.9);
  --theme-border-soft: rgba(53, 77, 108, 0.5);
  --theme-accent: #b4f5f3;
  --theme-accent-strong: #fec16a;
  --theme-primary: #5865f2;
  --theme-primary-dark: #4752c4;
  --theme-danger: #ff5f5f;
  --theme-success: #39d98a;
  --theme-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.mvc-buttons-style-defaultReC {
  color: rgb(224, 247, 241);
  background-color: rgb(21, 36, 39);
  border-color: rgb(12, 17, 20);
}

.mvc-buttons-style-defaultReC:hover {
  color: rgb(224, 247, 241);
  background-color: rgb(27, 54, 60);
  border-color: rgb(12, 17, 20);
}

.mvc-buttons-style-blackRec {
  color: rgb(224, 247, 241);
  background-color: rgb(138, 46, 47);
  border-color: rgb(25, 10, 6);
}

html,
body {
  overflow-x: hidden;
}

body {
  line-height: 1.4;
}

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

#timer_div_title {
  display: none !important;
}

.rankings {
  overflow: auto;
  max-width: 100%;
  display: block;
}

.ranking-table td {
  vertical-align: middle;
}

.logo a {
  left: 50%;
  transform: translateX(-50%);
}

.table tr {
  border: 1px solid #1f4b5d;
}

.table tr th {
  padding: 1rem;
}

.table tr td {
  vertical-align: bottom;
  padding: 1rem;
  border-collapse: collapse;
  border-right: 1px solid #1f4b5d !important;
}

.sidebar_rank td,
.sidebar_rank th {
  padding: 0.5rem !important;
  font-size: 14px;
}

#top_guilds img {
  background: #000;
  border-radius: 5px;
}

.top-block {
  width: 100%;
  color: #fff;
}

.top-list {
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 12px;
  border-bottom: 1px solid var(--theme-border-soft);
  transition: 0.3s;
}

.top-list a {
  color: #fff;
}

#content_center * {
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

#content_center a:hover,
#content_center p:hover,
#content_center div:hover {
  transform: none !important;
  filter: none !important;
}

.theme-login-server-select,
.theme-db-switch {
  box-shadow: none;
}

.theme-login-server-select {
  width: 100%;
  max-width: 249px;
  margin-bottom: 0;
}

.theme-db-switch {
  width: 110px;
  height: 25px;
  padding: 0 28px 0 15px;
  margin-bottom: 0;
  background-color: #331e24;
  border: 1px solid #2f1a1d;
  color: #d5d5d5;
}

.theme-avatar {
  width: 110px;
  height: 110px;
  border: 2px solid #132f3e;
  margin: 10px 0;
  object-fit: cover;
}

.theme-language-switcher {
  position: absolute;
  top: 362px;
  left: 12px;
  transform: none;
  z-index: 999;
}

.theme-language-switcher__inner {
  position: relative;
}

.theme-language-switcher__button {
  background: rgba(30, 30, 30, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.theme-language-switcher__button img,
.theme-language-switcher__option img {
  width: 25px;
  height: 15px;
  object-fit: cover;
}

.theme-language-switcher__chevron {
  color: #fff;
  font-size: 10px;
  line-height: 1;
}

.theme-language-switcher__list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 132px;
  background: rgba(30, 30, 30, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  display: none;
  overflow: hidden;
}

.theme-language-switcher__list.is-open {
  display: block;
}

.theme-language-switcher__option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: #fff;
  text-decoration: none;
}

.theme-language-switcher__option.is-active {
  background: rgba(180, 245, 243, 0.12);
  color: var(--theme-accent);
}

.theme-language-switcher__option:hover {
  background: rgba(180, 245, 243, 0.08);
}

.theme-stream-box {
  position: fixed;
  top: 20px;
  left: 20px;
  width: min(420px, calc(100vw - 40px));
  background: rgba(14, 14, 20, 0.96);
  border: 1px solid rgba(88, 101, 242, 0.25);
  border-radius: 18px;
  overflow: hidden;
  z-index: 9999;
  box-shadow: 0 20px 50px rgba(10, 10, 20, 0.45);
  color: #efeff1;
}

.theme-stream-box.is-hidden {
  display: none;
}

.theme-stream-box.is-minimized .theme-stream-box__body {
  display: none;
}

.theme-stream-box__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(10, 12, 18, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.theme-stream-box.is-minimized .theme-stream-box__header {
  border-bottom: none;
}

.theme-stream-box__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.theme-stream-box__status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--theme-danger);
  box-shadow: 0 0 14px rgba(255, 95, 95, 0.8);
  animation: theme-pulse 2s infinite;
}

.theme-stream-box__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-stream-box__control {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.08);
  color: #efeff1;
  cursor: pointer;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
}

.theme-stream-box__control:hover {
  background: rgba(88, 101, 242, 0.18);
  border-color: rgba(88, 101, 242, 0.5);
}

.theme-stream-box__control--primary {
  background: rgba(88, 101, 242, 0.95);
  border-color: rgba(88, 101, 242, 1);
  color: #fff;
}

.theme-stream-box__control--primary:hover {
  background: rgba(112, 137, 218, 1);
}

.theme-stream-box__body {
  display: flex;
  flex-direction: column;
}

.theme-stream-box__info {
  padding: 12px 16px;
  background: rgba(16, 17, 23, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.theme-stream-box__current {
  font-size: 14px;
  font-weight: 700;
}

.theme-stream-box__frame {
  width: 100%;
  height: 214px;
  border: 0;
  background: #000;
}

.theme-stream-box__list {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  background: rgba(14, 14, 20, 0.98);
}

.theme-stream-box__item {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.theme-stream-box__item:hover,
.theme-stream-box__item.is-active {
  border-color: rgba(88, 101, 242, 0.6);
  background: rgba(88, 101, 242, 0.18);
}

.theme-streamer-panel {
  position: fixed;
  right: calc(-1 * (var(--stream-panel-width, 0px) + 30px));
  bottom: 50%;
  transform: translateY(50%);
  margin: 10px;
  background: rgba(0, 0, 0, 0.95);
  padding: 15px;
  line-height: 1;
  transition: right 0.5s ease;
  z-index: 999;
  border: 2px solid #444;
  border-right: none;
  border-radius: 14px 0 0 14px;
  box-shadow: -5px 0 18px rgba(0, 0, 0, 0.7);
  max-width: min(calc(100vw - 58px), var(--stream-panel-width, 1000px));
}

.theme-streamer-panel.is-visible {
  right: 0;
}

.theme-streamer-panel__toggle {
  background: linear-gradient(90deg, #f02222 0%, #fa5656 45%, #f0b7b7 100%);
  color: #fff;
  border: none;
  padding: 12px 15px;
  cursor: pointer;
  font-size: 16px;
  z-index: 1000;
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  clip-path: polygon(0 0, 90% 0, 100% 100%, 10% 100%);
  font-weight: 700;
  border-radius: 0 8px 8px 0;
  box-shadow: 3px 0 10px rgba(255, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.theme-streamer-panel__toggle:hover {
  padding-left: 20px;
}

.theme-streamer-panel__track {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  overflow-x: auto;
  padding-bottom: 4px;
}

.theme-streamer-panel__item {
  position: relative;
  flex: 0 0 auto;
}

.theme-streamer-panel__preview {
  width: 160px;
  height: 100px;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-streamer-panel__preview img {
  max-width: 100%;
  max-height: 100%;
}

.theme-streamer-panel__badge {
  position: absolute;
  top: -10px;
  right: 10px;
  background: #e10600;
  color: #fff;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  animation: theme-pulse 1.5s infinite;
}

.theme-streamer-panel iframe,
.theme-streamer-panel .stream-iframe {
  border: 1px solid #292929;
  margin: 0 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-streamer-panel iframe:hover,
.theme-streamer-panel .stream-iframe:hover {
  border-color: gold;
  transform: scale(1.03);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.theme-discord-link {
  text-decoration: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.theme-discord-capsule {
  position: relative;
  height: 54px;
  padding: 0 20px 0 16px;
  background: linear-gradient(90deg, var(--theme-primary-dark) 0%, var(--theme-primary) 100%);
  border-radius: 999px;
  display: flex;
  align-items: center;
  color: #fff;
  box-shadow: 0 8px 32px rgba(88, 101, 242, 0.38), inset 0 1px 2px rgba(255, 255, 255, 0.15);
  overflow: hidden;
  transition: box-shadow 0.4s ease;
  animation: theme-soft-breathe 5.5s ease-in-out infinite;
  cursor: pointer;
}

.theme-discord-icon {
  width: 28px;
  height: 28px;
  color: #fff;
  margin-right: 10px;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.35));
  transition: transform 0.3s ease;
}

.theme-discord-text {
  position: relative;
  width: 80px;
  height: 100%;
  display: flex;
  align-items: center;
}

.theme-discord-label,
.theme-discord-label-alt {
  font-family: Tahoma, Arial, sans-serif;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  position: absolute;
  left: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-discord-label {
  opacity: 1;
  transform: translateY(0);
}

.theme-discord-label-alt {
  opacity: 0;
  transform: translateY(12px);
}

.theme-discord-pulse {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.theme-discord-capsule:hover {
  box-shadow: 0 14px 48px rgba(88, 101, 242, 0.62), inset 0 1px 3px rgba(255, 255, 255, 0.2);
  animation: none;
}

.theme-discord-capsule:hover .theme-discord-icon {
  transform: scale(1.12);
}

.theme-discord-capsule:hover .theme-discord-label {
  opacity: 0;
  transform: translateY(-12px);
}

.theme-discord-capsule:hover .theme-discord-label-alt {
  opacity: 1;
  transform: translateY(0);
}

.theme-discord-capsule:hover .theme-discord-pulse::before,
.theme-discord-capsule:hover .theme-discord-pulse::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.32) 15%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 0;
}

.theme-discord-capsule:hover .theme-discord-pulse::before {
  animation: theme-fast-ripple 1.3s infinite ease-out;
}

.theme-discord-capsule:hover .theme-discord-pulse::after {
  animation: theme-fast-ripple 1.3s 0.45s infinite ease-out;
}

.theme-discord-capsule:active {
  transform: scale(0.97);
  transition: transform 0.1s ease;
}

.theme-rating-badge {
  position: fixed;
  z-index: 9999;
}

.theme-rating-badge--left {
  left: 0;
  bottom: 0;
  width: 145px;
  height: 122px;
}

.theme-rating-badge--left img,
.theme-rating-badge--right img {
  display: block;
}

.theme-rating-badge--right img {
  max-width: none;
}

.theme-rating-badge--right {
  right: 0;
  bottom: 0;
}

.wrapper {
  width: min(1200px, calc(100% - 32px));
}

.container {
  gap: 10px;
}

.content {
  width: calc(100% - 600px);
  min-width: 0;
}

.sidebar {
  flex: 0 0 290px;
  min-width: 0;
}

.widget > form,
.widget > div,
.widget > ul,
.widget > table {
  overflow-wrap: anywhere;
}

.widget_account > span {
  padding: 5px;
  border-bottom: 1px solid #1f4b5d;
  text-align: center;
  display: block;
}

table {
  max-width: 100%;
}

@keyframes theme-pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@keyframes theme-soft-breathe {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 8px 32px rgba(88, 101, 242, 0.38);
  }

  50% {
    transform: scale(1.03);
    box-shadow: 0 12px 40px rgba(88, 101, 242, 0.52);
  }
}

@keyframes theme-fast-ripple {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0.55;
  }

  60% {
    opacity: 0.22;
  }

  100% {
    transform: translate(-50%, -50%) scale(3.5);
    opacity: 0;
  }
}

@media (max-width: 1280px) {
  .wrapper {
    width: calc(100% - 24px);
  }

  .logo a {
    width: min(532px, 80vw);
    height: 300px;
    background-size: contain;
    background-position: center;
  }

  .menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 10px;
  }

  .menu li {
    margin: 0 8px;
    padding: 0 10px;
  }
}

@media (max-width: 1100px) {
  .wrapper {
    width: calc(100% - 20px);
  }

  .header {
    min-height: 520px;
    height: auto;
  }

  .logo a {
    top: 48px;
  }

  .header-bottom-block {
    position: relative;
    bottom: auto;
    padding-top: 330px;
    height: auto;
  }

  .container {
    flex-direction: column;
    min-height: 0;
  }

  .content,
  .sidebar,
  .left-sidebar,
  .right-sidebar {
    width: 100%;
    max-width: none;
    flex: 1 1 auto;
  }

  .content {
    order: 1;
    padding-top: 0;
  }

  .left-sidebar {
    order: 2;
  }

  .right-sidebar {
    order: 3;
  }

  .sidebar {
    margin-bottom: 0;
  }

  .widget-left .widget-title,
  .widget-right .widget-title {
    width: 100%;
    margin: -19px 0 0;
    background-position: center top;
    background-size: contain;
  }

  .w-buttons {
    display: flex;
    gap: 10px;
  }

  .w-buttons a {
    width: 50%;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 13px;
  }

  .wrapper {
    width: calc(100% - 16px);
  }

  .header {
    min-height: 430px;
  }

  .logo a {
    top: 30px;
    width: min(420px, 82vw);
    height: 220px;
  }

  .header-bottom-block {
    padding: 245px 8px 16px;
  }

  .menu {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 6px;
    align-items: start;
  }

  .menu li {
    margin: 0;
    padding: 0;
  }

  .menu li:after {
    display: none;
  }

  .menu li:before {
    top: -2px;
  }

  .menu li a {
    min-height: 58px;
    padding: 30px 6px 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
    font-size: 10px;
  }

  .sidebar,
  .content {
    overflow: hidden;
  }

  .widget {
    min-height: 0;
  }

  .widget > form,
  .widget > div,
  .widget > ul,
  .widget > table {
    padding: 0 14px 18px;
  }

  .widget-left .widget-title,
  .widget-right .widget-title {
    height: 92px;
    line-height: 84px;
    font-size: 14px;
    margin-top: -14px;
  }

  .lk-coins {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 8px 12px 10px;
  }

  .lk-coins .username,
  .lk-coins .coins,
  .lk-coins a,
  .lk-coins img {
    float: none;
    margin: 0;
  }

  .sidebar-links li a,
  .forum {
    width: 100%;
  }

  .sidebar-links li a:hover,
  .forum:hover {
    width: 100%;
    margin-left: 0;
    padding-left: 15px;
    padding-right: 15px;
  }

  .forum {
    height: auto;
    min-height: 64px;
    padding: 14px 12px;
  }

  .forum:hover .forum-ava {
    margin-right: 18px;
  }

  .server {
    height: auto;
    min-height: 120px;
    padding: 18px 12px 18px 86px;
    background-position: left 12px center;
  }

  .server > div,
  .server .progress {
    width: 100%;
    max-width: 170px;
  }

  input,
  textarea,
  select,
  .button,
  .button-big {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .theme-login-server-select,
  .theme-db-switch {
    width: 100% !important;
    max-width: none;
  }

  .theme-language-switcher {
    top: 14px;
    left: 14px;
    transform: none;
  }

  .theme-stream-box {
    top: auto;
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }

  .theme-stream-box__frame {
    height: 190px;
  }

  .theme-stream-box__list {
    grid-template-columns: 1fr;
  }

  .theme-streamer-panel {
    left: 12px;
    right: 12px;
    bottom: 90px;
    top: auto;
    transform: none;
    max-width: none;
  }

  .theme-streamer-panel__toggle {
    top: auto;
    bottom: 48px;
    left: 12px;
    transform: none;
  }

  .theme-discord-link {
    top: auto;
    right: 12px;
    bottom: 82px;
  }

  .theme-discord-capsule {
    height: 48px;
    padding: 0 16px 0 12px;
  }

  .theme-discord-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
  }

  .theme-discord-label,
  .theme-discord-label-alt {
    font-size: 14px;
  }

  .theme-discord-text {
    width: 70px;
  }

  .theme-rating-badge {
    display: none;
  }

  .f-menu {
    position: static;
    bottom: auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 0;
    padding-top: 18px;
  }

  .f-menu li a {
    margin: 0 12px;
  }

  .f-menu li a:after {
    right: -13px;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 8px;
  }

  #content {
    overflow-x: auto;
  }

  .table tr th,
  .table tr td {
    padding: 0.75rem;
  }
}

@media (max-width: 560px) {
  .header {
    min-height: 500px;
  }

  .header-bottom-block {
    padding-top: 260px;
  }

  .menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 8px;
  }

  .menu li a {
    min-height: 64px;
    font-size: 11px;
  }

  .theme-language-switcher {
    top: 24px;
    left: 12px;
  }

  .theme-language-switcher__button {
    padding: 6px 9px;
  }

  .news .news-title {
    height: auto;
    min-height: 58px;
    padding: 12px 16px;
    line-height: 1.3;
    background-size: cover;
    background-position: center;
  }

  .widget-left .widget-title,
  .widget-right .widget-title {
    height: 82px;
    line-height: 76px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-stream-box *,
  .theme-streamer-panel *,
  .theme-discord-capsule,
  .theme-discord-capsule * {
    transition: none !important;
    animation: none !important;
  }
}
