* {
    font-family: "samsung-sharp-sans";
    font-weight: 400;
    z-index: 1;
}


  @font-face {
  font-family: "samsung-sharp-sans";
  src:
    local("samsung-sharp-sans"),
    url("/assets/fonts/samsung-sharp-sans-bold.otf") format("opentype") tech(color-COLRv1);
}



body {
    background-color: #000;
    display: flex;
    justify-content: start;
    align-items: center;
    flex-direction: column;
}

.backgroundGradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    background: radial-gradient(#d37306, #000);
    filter: blur(100px);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bgCircle {
    border-radius: 100%;
    width: 20vh;
    height: 20vh;
    position: absolute;
    top: 0;
    left: 0;
    user-select: none;
}

.bgCircle4 {
    animation-timing-function: ease-in-out;
    animation-duration: 7s;
    animation-name:  bg-circle-anim-4;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    background: #ffd00085;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes bg-circle-anim-4 {
    from {
        left: 33.8%;
        top: 28.0%;
        width: 50vh;
        height: 50vh;
    }

    50% {
        left: 17.8%;
        top: 50.0%;
        width: 30vh;
        height: 30vh;

    }

    to {
        left: 35.6%;
        top: 32.8%;
        width: 43.8vh;
        height: 43.8vh;
    }
}

.bgCircle3 {
    animation-timing-function: ease-in-out;
    animation-duration: 4s;
    animation-name:  bg-circle-anim-3;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    background: #aa7005c7;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes bg-circle-anim-3 {
    from {
        left: 40%;
        top: 39.1%;
        width: 30vh;
        height: 30vh;
    }

    50% {
        left: 13.7%;
        top: 13%;
        width: 48.4vh;
        height: 50.4vh;
    }

    to {
        left: 33.7%;
        top: 23%;
        width: 48.4vh;
        height: 50.4vh;
    }
}

.bgCircle2 {
    animation-timing-function: ease-in-out;
    animation-duration: 7s;
    animation-name:  bg-circle-anim-2;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    background: #947307;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes bg-circle-anim-2 {
    from {
        left: 14.5%;
        top: -15.5%;
        width: 75vh;
        height: 75vh;
    }

    50% {
        left: 34.3%;
        top: -10.4%;
        width: 70vh;
        height: 70vh;
    }

    to {
        left: 24.3%;
        top: 10.4%;
        width: 76vh;
        height: 76vh;
    }
}

.bgCircle1 {
    animation-timing-function: ease-in-out;
    animation-duration: 7s;
    animation-name:  bg-circle-anim-1;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    background: #c03d0069;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes bg-circle-anim-1 {
    from {
        left: 42.9%;
        top: 26.0%;
        width: 70vh;
        height: 70vh;
    }

    50% {
        left: 42.9%;
        top: 26.0%;
        width: 70vh;
        height: 70vh;
    }

    to {
        left: 20.4%;
        top: 8.0%;
        width: 90vh;
        height: 90vh;
    }
}

.bgCircle5 {
    animation-timing-function: ease-in-out;
    animation-duration: 7s;
    animation-name:  bg-circle-anim-5;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    background: #ffffff00;
    border: 15px solid #ac6700;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes bg-circle-anim-5 {
    from {
        left: 25%;
        top: 25.0%;
        width: 200vh;
        height: 200vh;
    }

    50% {
        left: 32%;
        top: 46.0%;
        width: 150vh;
        height: 150vh;
    }

    to {
        left: 25%;
        top: 20.0%;
        width: 230vh;
        height: 230vh;
    }
}

/* сверху фон */

.error-backgroundGradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    background: radial-gradient(#c22c2c, #000);
    filter: blur(100px);
    overflow: hidden;
}

.error-bgCircle {
    border-radius: 100%;
    width: 20vh;
    height: 20vh;
    position: absolute;
    top: 0;
    left: 0;
    user-select: none;
}

.error-bgCircle4 {
    animation-timing-function: ease-in-out;
    animation-duration: 7s;
    animation-name:  bg-circle-anim-4;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    background: #55000085;
}

@keyframes error-bg-circle-anim-4 {
    from {
        left: 33.8%;
        top: 28.0%;
        width: 50vh;
        height: 50vh;
    }

    50% {
        left: 17.8%;
        top: 50.0%;
        width: 30vh;
        height: 30vh;

    }

    to {
        left: 35.6%;
        top: 32.8%;
        width: 43.8vh;
        height: 43.8vh;
    }
}

.error-bgCircle3 {
    animation-timing-function: ease-in-out;
    animation-duration: 4s;
    animation-name:  bg-circle-anim-3;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    background: #7c0808c7;
}

@keyframes error-bg-circle-anim-3 {
    from {
        left: 40%;
        top: 39.1%;
        width: 30vh;
        height: 30vh;
    }

    50% {
        left: 13.7%;
        top: 13%;
        width: 48.4vh;
        height: 50.4vh;
    }

    to {
        left: 33.7%;
        top: 23%;
        width: 48.4vh;
        height: 50.4vh;
    }
}

.error-bgCircle2 {
    animation-timing-function: ease-in-out;
    animation-duration: 7s;
    animation-name:  bg-circle-anim-2;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    background: #ce4141;
}

@keyframes error-bg-circle-anim-2 {
    from {
        left: 14.5%;
        top: -15.5%;
        width: 75vh;
        height: 75vh;
    }

    50% {
        left: 34.3%;
        top: -10.4%;
        width: 70vh;
        height: 70vh;
    }

    to {
        left: 24.3%;
        top: 10.4%;
        width: 76vh;
        height: 76vh;
    }
}

.error-bgCircle1 {
    animation-timing-function: ease-in-out;
    animation-duration: 7s;
    animation-name:  bg-circle-anim-1;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    background: #5a1b1b69;
}

@keyframes error-bg-circle-anim-1 {
    from {
        left: 42.9%;
        top: 26.0%;
        width: 70vh;
        height: 70vh;
    }

    50% {
        left: 42.9%;
        top: 26.0%;
        width: 70vh;
        height: 70vh;
    }

    to {
        left: 20.4%;
        top: 8.0%;
        width: 90vh;
        height: 90vh;
    }
}

.error-bgCircle5 {
    animation-timing-function: ease-in-out;
    animation-duration: 7s;
    animation-name:  bg-circle-anim-5;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    background: #ffffff00;
    border: 15px solid #c02f2f;
    border-radius: 50%;
}

@keyframes error-bg-circle-anim-5 {
    from {
        left: 25%;
        top: 25.0%;
        width: 200vh;
        height: 200vh;
    }

    50% {
        left: 32%;
        top: 46.0%;
        width: 150vh;
        height: 150vh;
    }

    to {
        left: 25%;
        top: 20.0%;
        width: 230vh;
        height: 230vh;
    }
}

.error-top-title {
    margin: 0;
    margin-top: 15px;
    background-image: linear-gradient(to top, #fa7b7b , #ff0000);
    color: transparent;
    background-clip: text;
    font-size: 50px;
    text-align: center;
    text-shadow: 0 0 45px #771212;
    cursor: pointer;
    text-decoration: none;
    background-color: transparent;
    border: 0px;
    border-radius: 0px;
}

/* сверху фон ошибки и ошибочный тайтл */

.top-title {
    margin: 0;
    margin-top: 15px;
    margin-bottom: 0;
    background-image: linear-gradient(to top, #fa997b , #ffbb00);
    color: transparent;
    background-clip: text;
    font-size: 40px;
    text-align: center;
    text-shadow: 0 0 45px #ff7300;
    cursor: pointer;
    text-decoration: none;
    background-color: transparent;
    border: 0px;
    border-radius: 0px;
}

.top-title-preloader {
    margin: 0;
    margin-top: 15px;
    margin-bottom: 0;
    background-image: linear-gradient(to top, #fa997b , #ffbb00);
    color: transparent;
    background-clip: text;
    font-size: 40px;
    text-align: center;
    text-shadow: 0 0 45px #ff7300;
    cursor: pointer;
    text-decoration: none;
    background-color: transparent;
    border: 0px;
    border-radius: 0px;
}

#preloader {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #070707;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 1s ease;
}

#preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.navbar {
    background-color: rgba(255,255,255,0.05);
    border-radius: 55px;
    backdrop-filter: blur(5px);
    margin-top: 20px;
    padding: 10px;
    border: 2px solid rgba(255,255,255,0.1);
    width: fit-content;
    transition: all 0.3s;
}

.navbar-button {
    margin-top: 0px;
    margin-bottom: 0px;
    background-color: rgba(255,255,255,0.05);
	backdrop-filter: blur(5px);
    /* box-shadow: 0 0 15px #ddd; */
    padding: 4px;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 75px;
    color: #ddd;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.navbar-button:hover {
    background-color: #ddd;
    color: #466e7a78;
}

.menu-button {
    background-color: #466e7a78;
	backdrop-filter: blur(5px);
    box-shadow: 0 0 15px #ddd;
    padding: 4px;
    width: 90%;
    border: 3px solid #ddd;
    border-radius: 75px;
    color: #ddd;
    font-size: 30px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: block;
    margin: 0 auto;
    text-decoration: none;
}

.menu-button:hover {
    background-color: #ddd;
    color: #466e7a78;
}

.navbar-button-this {
    margin-top: 0px;
    margin-bottom: 0px;
    background-color: rgba(255, 145, 0, 0.05);
	backdrop-filter: blur(5px);
    box-shadow: 0 0 15px #ffae00;
    padding: 4px;
    border: 2px solid #ffae00;
    border-radius: 75px;
    color: #ffae00;
    font-size: 20px;
    transition: all 0.2s ease-in-out;
}

.navbar-button-this:hover {
    background-color: #b97f00;
    color: #ffae00;
}

.content {
    background-color: rgba(56, 56, 56, 0.308);
    border-radius: 25px;
    backdrop-filter: blur(5px);
    margin-top: 200px;
    margin-bottom: 80px;
    width: 700px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* box-shadow: 0 0 15px #ddd; */
}

.devices-container {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: flex-start;
    margin-bottom: 15px;
    margin-left: 20px;
    margin-right: 10px;
}

#toggleDevicesBtn {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 55px;
	backdrop-filter: blur(5px);
    /* box-shadow: 0 0 45px #ff7300; */
    padding: 4px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffae00;
    font-size: 25px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
#toggleDevicesBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 12px -1px rgba(0,0,0,0.5);
    -webkit-box-shadow: 0 10px 12px -1px rgba(0,0,0,0.5);
    -moz-box-shadow: 0 10px 12px -1px rgba(0,0,0,0.5);
    cursor: pointer;
}

.playquadro {
    background-color: #8d8d8d;
	backdrop-filter: blur(5px);
    box-shadow: 0 0 45px #ffffff;
    padding: 4px;
    margin-bottom: 10px;
    border: 3px solid #ffffff;
    border-radius: 75px;
    color: #ffffff;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.playquadro:hover {
    background-color: #5a5a5a;
    color: #e2e2e2;
}

.devices-wrapper {
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(.4,0,.2,1), opacity 0.5s;
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
}

.device-card:hover {
    box-shadow: 0 4px 24px #0004;
}

.devices-wrapper.open {
    max-height: 2000px; /* Должно быть больше, чем высота контента */
    opacity: 1;
    margin-bottom: 32px;
}

.device-card {
    background: rgba(255,255,255,0.08);
    border: 1.5px solid #fff6;
    border-radius: 16px;
    width: calc(50% - 16px);
    min-width: 320px;
    box-sizing: border-box;
    padding: 24px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 0;
    box-shadow: 0 2px 14px #0002;
    transition: box-shadow 0.2s;
}

.device-card:hover {
    box-shadow: 0 4px 24px #0004;
}

.device-header {
    display: flex;
    align-items: center;
    gap: 18px;
}

.device-icon {
    width: 66px;
    border-radius: 14px;
    object-fit: contain;
}

.device-title {
    font-size: 20px;
    color: #ff9900;
    text-shadow: 0 0 15px #ff7300;
    text-align: left;
}

.device-specs {
    font-size: 11px;
    color: #cecece;
    margin-bottom: 0px;
    text-align: left;
}

.device-date {
    font-size: 10px;
    color: #b1b1b1;
    text-align: center;
}

@media (max-width: 800px) {
    .device-card {
        width: 100%;
        min-width: unset;
    }
    .devices-container {
        gap: 20px;
    }
}

.content-prikols {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 10px;
}

.card-link {
    text-decoration: none;
    color: inherit;
    width: calc(50% - 40px); /* Две карточки в ряд */
    margin: 20px;
    box-sizing: border-box;
}

.card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 55px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
    height: 170px; /* Фиксированная высота карточки */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 12px -1px rgba(0,0,0,0.5);
    -webkit-box-shadow: 0 10px 12px -1px rgba(0,0,0,0.5);
    -moz-box-shadow: 0 10px 12px -1px rgba(0,0,0,0.5);
    cursor: pointer;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
}

.card h2 {
    color: #ff9900;
    text-shadow: 0 0 15px #ff7300;
    font-size: 1.3em;
    margin: 0;
}

.card p {
    font-size: 0.8em;
    color: #ccc;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 15px;
}

.last-updated {
    font-size: 0.8em;
    color: #888;
}

@media (max-width: 768px) {
    .card-link {
        width: calc(100% - 40px); /* Одна карточка в ряд на маленьких экранах */
    }
}

.presence-card {
    display: flex;
    font-family: "JetBrains Mono";
    justify-content: left;
}

.rpc-activity-card {
    display: flex;
    /* justify-self: center; */
    background-color: #1e1f22;
    border-radius: 10px;
    padding: 20px;
    max-width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.rpc-activity-card:first-child {
    margin-bottom: 20px;
}

.activity-header {
    display: flex; /* Используем flexbox для выравнивания */
    align-items: center; /* Выравниваем элементы по вертикали */
}

.icon-container {
    position: relative;
    display: inline-block;
    margin-right: 10px; /* Отступ между иконкой и текстом */
}

.activity-icon {
    width: 60px;
    height: 60px;
    vertical-align: top;
    border-radius: 5px; /* Закругляем углы */
}

.small-image {
    background-color: #1e1f22;
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    /* border: 2px solid #2f3136; */
    opacity: 1;
    transition: opacity 0.3s ease;
}

.presence-card:hover .small-image,
.icon-container:hover .small-image,
.icon-container:hover .activity-icon {
    opacity: 1;
}

.activity-info {
    font-family: "JetBrains Mono";
    flex: 1; /* Занимает оставшееся место */
}

.activity-info h2 {
    font-family: "JetBrains Mono";
    color: #fff;
    margin-top: 0;
    font-size: 1em;
    width: auto;
}

.activity-info p {
    font-family: "JetBrains Mono";
    margin: 5px 0;
}

.content-block {
    background-color: #466e7a78;
    backdrop-filter: blur(5px);
    margin-top: 40px;
    width: 700px;
    border: 5px solid #ddd;
    border-radius: 35px;
    box-shadow: 0 0 15px #ddd;
}

.content-projects {
    margin-bottom: 1500px;
    background-color: #7a764678;
    backdrop-filter: blur(5px);
    margin-top: 40px;
    width: 700px;
    border: 5px solid #ddd;
    border-radius: 35px;
    box-shadow: 0 0 15px #ddd;
}

.content-title {
    margin: 0;
    margin-top: 10px;
    color: #ddd;
    font-size: 40px;
    text-align: center;
}

.content-text {
    margin: 0;
    margin-bottom: 20px;
    margin-left: 20px;
    margin-right: 20px;
    color: #ddd;
    font-size: 25px;
    text-align: left;
}

.content-text-gallery {
    margin: 0;
    margin-bottom: 20px;
    margin-left: 20px;
    margin-right: 20px;
    color: #ffd000;
    font-size: 12px;
    text-align: left;
    text-shadow: 0 0 15px #000000;
}

.content-text-title {
    margin: 0;
    margin-left: 20px;
    margin-right: 20px;
    color: #ddd;
    font-size: 30px;
    text-align: left;
    text-shadow: 0 0 15px #ddd;
    text-decoration: none;
}

.content-text-social {
    margin: 0;
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 30px;
    color: #ff9900;
    text-shadow: 0 0 15px #ff7300;
    font-size: 40px;
    text-align: center;
    display: inline-block;
}

.spoiler {
    background-color: #505050;
    color: transparent;
    user-select: none;
    transition: all 0.3s ease-in-out;
}

.spoiler:hover {
    background-color: inherit;
    color: inherit;
}

.player {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 35px;
    margin-top: 40px;
    margin-bottom: 20px;
    width: 70%;
    display: block;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.player-button {
    margin-top: 10px;
    margin-bottom: 10px;
    width: 50px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 35px;
	backdrop-filter: blur(5px);
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-variation-settings:
        'FILL' 1,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24
}

.player-button svg {
    fill: #ffffff;
}

.player-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 12px -1px rgba(0,0,0,0.5);
}

.player-text {
    margin: 0;
    margin-bottom: 20px;
    margin-left: 5px;
    margin-right: 5px;
    color: #ddd;
    font-size: 20px;
    text-align: left;
}

.player-author {
    margin: 0 5px 20px 5px;
    color: #ddd;
    font-size: 20px;
    text-align: left;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.player-textTitle {
    margin: 0 5px 20px 5px;
    color: #ff9900;
    text-shadow: 0 0 15px #ff7300;
    font-size: 20px;
    text-align: left;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}


.fade-in {
    opacity: 1;
}

#player-div span {
    margin-top: 0;
    color: #ffd000;
    font-size: 40px;
    text-align: center;
    text-shadow: 0 0 15px #ddd;
    display: inline-block;
}

.player-input {
  -webkit-appearance: none; /* убираем стандартный стиль */
  appearance: none;
  width: 100px;
  height: 8px;
  background: #dddddd00;
  border-radius: 5px;
  outline: none;
  cursor: pointer;
}

/* Chrome, Safari */
.player-input::-webkit-slider-runnable-track {
  height: 7px;
  background: #ffaa2b;
  border-radius: 55px;
}

.player-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background-color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 55px;
  cursor: pointer;
  margin-top: -5px; /* чтобы кружок был по центру трека */
}


/* Firefox */
.player-input::-moz-range-track {
  height: 5px;
  background: #466e7a78;
  border-radius: 55px;
}

.player-input::-moz-range-progress {
  height: 9px;
  background: #ff9900;
  box-shadow: 0 0 25px #ff7300;
  border-radius: 55px;
  position: relative;   /* добавляем позиционирование */
  z-index: 2;
}

.player-input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background-color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 55px;
  cursor: pointer;
  transition: 0.3s ease;
  position: relative;   /* добавляем позиционирование */
  z-index: 1;   
}

/* .player-input::-moz-range-thumb:hover {
  background-color: rgba(255, 255, 255, 0.596);
  cursor: pointer;
} */



.material-symbols-outlined {
  font-variation-settings:
  'FILL' 1,
  'wght' 400,
  'GRAD' 0,
  'opsz' 24
}

#repeatTrackBtn {
    margin-top: 10px;
    margin-bottom: 10px;
    width: 50px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 35px;
    backdrop-filter: blur(5px);
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-variation-settings:
        'FILL' 1,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24
}

#repeatTrackBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 12px -1px rgba(0,0,0,0.5);
}

#repeatTrackBtn.active {
  background-color: rgba(114, 255, 79, 0.322); /* зелёный при включении */
}

/* #repeatTrackBtn.active:hover {

} */


.music-modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 20, 0.85);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.music-modal-overlay.active {
    opacity: 1;
    pointer-events: auto; /* кликабельный, когда видим */
}

.music-modal {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 24px;
    max-width: 420px;
    width: 90%;
    color: #fff;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    animation: scaleIn 0.3s ease;
    text-align: center;
    position: relative;
}

.music-modal-overlay.active .music-modal {
    transform: scale(1);
}

.music-modal h2 {
    margin: 0 5px 20px 5px;
    margin-bottom: 0px;
    color: #ff9900;
    text-shadow: 0 0 15px #ff7300;
    font-size: 30px;
}

.music-modal p {
    margin-top: 0px;
    color: #ddd;
    font-size: 20px;
}

.music-modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    transition: color 0.2s;
}
.music-modal-close:hover {
    color: #ff9900;
}

.music-modal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* кнопки с иконкой и тайтлом */
.music-modal-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    transition: all 0.25s ease;
}

/* бренды */
.music-modal-button.youtube {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ff0000;
}
.music-modal-button.spotify {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #1db954;
}
.music-modal-button.soundcloud {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ff7700;
}
.music-modal-button.yandex {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffcc00;
}
.music-modal-button.bandlink {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #d81946;
}

.music-modal-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 12px -1px rgba(0,0,0,0.5);
    -webkit-box-shadow: 0 10px 12px -1px rgba(0,0,0,0.5);
    -moz-box-shadow: 0 10px 12px -1px rgba(0,0,0,0.5);
    cursor: pointer;
}

/* анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* иконки в кнопках (через <img>) */
.music-modal-button img {
    width: 20px;
    height: 20px;
}

/* контейнер модалки и анимация как раньше */
.settings-modal-overlay {
    display: flex; /* ставим flex всегда, но делаем скрытым */
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(15, 15, 20, 0.85);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.settings-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.settings-modal {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 24px;
    max-width: 420px;
    width: 90%;
    color: #fff;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: relative;
    text-align: left;
}
.settings-modal-overlay.active .settings-modal {
    transform: scale(1);
    opacity: 1;
}
.settings-modal-close {
    position: absolute; right: 20px; top: 15px;
    font-size: 26px; font-weight: bold;
    cursor: pointer; color: #aaa;
    transition: color 0.2s;
}
.settings-modal-close:hover { color: #ff9900; }

/* отдельная настройка */
.setting-item {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    margin-top: 16px;
    margin-bottom: 16px;
}
.setting-info h3 {
    color: #ff9900;
    text-shadow: 0 0 15px #ff7300;
    margin: 0 0 4px 0;
    font-size: 1em;
}
.setting-info p { 
    color: #999; 
    margin: 0; 
    max-width: 350px;
    font-size: 0.7em; 
}

/* toggle switch */
.switch {
  position: relative;
  display: inline-block;
  width: 50px; 
  height: 26px;
}
.switch input { display: none; }
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #466e7a78;
  transition: 0.2s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 20px; /* подогнал */
  width: 20px;
  left: 3px; top: 3px;
  background-color: rgba(255, 255, 255, 0.5);
  /* border: 1px solid rgba(255, 255, 255, 0.1); */
  transition: 0.2s;
  border-radius: 50%;
}
input:checked + .slider {
    background-color: #ff9900;
    box-shadow: 0 0 25px #ff7300;
}
input:checked + .slider:before { transform: translateX(24px); }


.explicit-badge {
    display: inline-block;
    vertical-align: middle;
}

.copy-notification {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: #ff9900;
    text-shadow: 0 0 15px #ff7300;
    padding: 12px 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10000;
}
.copy-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.playlist-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    opacity: 0;
    z-index: 1000;
}

.playlist-modal-overlay.active {
    opacity: 1;
}

.playlist-modal {
    background: #1a1a1a;
    border-radius: 15px;
    padding: 20px;
    width: 400px;
    max-width: 90%;
    color: white;
    text-align: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.playlist-modal-overlay.active .playlist-modal {
    transform: translateY(0);
}

.playlist-title {
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: bold;
}

.playlist-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.playlist-item {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    text-align: center;
}

.playlist-item:hover {
    transform: scale(1.05);
    background: #3a3a3a;
}

.playlist-item img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 8px;
}

.playlist-item span {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.track-item {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:12px;
  padding:6px;
  border-radius:8px;
  position:relative;
}
.track-info { display:flex; gap:8px; align-items:center; }
.track-cover { position:relative; width:50px; height:50px; border-radius:5px; overflow:hidden; }
.track-cover img { width:100%; height:100%; object-fit:cover; }
.play-button { 
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  display:none; background:rgba(0,0,0,0.5); border-radius:50%; padding:6px; cursor:pointer;
}
.track-cover:hover .play-button { display:block; }

.track-title { font-weight:bold; }
.track-author { color:#ccc; font-size:0.85em; }
.track-explicit { color:#ff3300; font-size:0.75em; margin-left:4px; }

.track-meta { display:flex; align-items:center; gap:8px; }
.track-duration { font-size:0.8em; color:#aaa; }
.track-like { cursor:pointer; width:22px; height:22px; }
.track-like.liked { filter: hue-rotate(320deg); } /* красный */

.like-btn {
    margin-top: 10px;
    margin-bottom: 10px;
    width: 45px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 35px;
	backdrop-filter: blur(5px);
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-variation-settings:
        'FILL' 1,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24
}

.like-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 12px -1px rgba(0,0,0,0.5);
}

.settings-btn {
    vertical-align: center;
    display: inline-block;
    color: #ddd;
    /* margin-top: 3px; */
    margin-bottom: 3px;
    width: 145px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 35px;
	backdrop-filter: blur(5px);
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-variation-settings:
        'FILL' 1,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24
}

.settings-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 12px -1px rgba(0,0,0,0.5);
}

.notification {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: #ff9900;
    text-shadow: 0 0 15px #ff7300;
    padding: 12px 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10000;
}
.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.welcome-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(15, 15, 20, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.welcome-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.welcome-modal-window {
background-color: rgba(255, 255, 255, 0.05);
border-radius: 15px;
border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px 40px;
  max-width: 700px;
  width: 90%;
  text-align: center;
  /* color: white; */
  /* box-shadow: 0 0 20px rgba(255, 153, 0, 0.8); */
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.welcome-modal-overlay.active .welcome-modal-window {
  transform: scale(1);
}

.welcome-modal-title {
  text-align: center;
  margin: 0;
  font-size: 25px;
  background-image: linear-gradient(to right, #fec9b9 , #fedc6e);
  color: transparent;
  background-clip: text;
  font-weight: 600;
}

.welcome-modal-steptitle {
  margin: 0;
  font-size: 25px;
  color: #ff9900;
  text-shadow: 0 0 15px #ff7300;
}

.welcome-modal-window p {
    text-align: left;
    margin-top:10px;
    color:#ffffff;
  margin: 0;
  font-size: 15px;
}

.welcome-modal-window button {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 55px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ff9900;
    text-shadow: 0 0 15px #ff7300;
    margin-top: 10px;
    cursor: pointer;
  font-size: 25px;
  transition: all 0.2s ease-in-out;
}

.welcome-modal-window button:hover {
        transform: translateY(-5px);
    box-shadow: 0 10px 12px -1px rgba(0,0,0,0.5);
    -webkit-box-shadow: 0 10px 12px -1px rgba(0,0,0,0.5);
    -moz-box-shadow: 0 10px 12px -1px rgba(0,0,0,0.5);
    cursor: pointer;
}

#dontShowCheckbox {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s ease;
}

#dontShowCheckbox:hover {
    /* transform: translateY(-10px); */
    box-shadow: 0 10px 12px -1px rgba(0,0,0,0.5);
    -webkit-box-shadow: 0 10px 12px -1px rgba(0,0,0,0.5);
    -moz-box-shadow: 0 10px 12px -1px rgba(0,0,0,0.5);
    cursor: pointer;
}

.tracklist-modal-overlay {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.7);
  display:none;
  justify-content: center;
  align-items: center;
  z-index:1000;
}

.tracklist-modal-content {
  background:#1a1a1a;
  color:white;
  max-width: 700px;
  width: 90%;
  max-height: 80%;
  overflow-y: auto;
  padding: 20px;
  border-radius:10px;
  position: relative;
}

.tracklist-modal-close {
  position: absolute;
  top:10px;
  right:15px;
  font-size: 24px;
  cursor: pointer;
}

.tracklist-item {
  display:flex;
  align-items:center;
  padding:10px;
  border-bottom:1px solid #333;
  gap:10px;
  position: relative;
}

.tracklist-item img {
  width:50px;
  height:50px;
  object-fit:cover;
  border-radius:5px;
  position: relative;
}

.tracklist-play-btn-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  cursor: pointer;
  font-size: 24px;
  background: rgba(0,0,0,0.5);
  color: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
}

.tracklist-cover-wrapper {
  position: relative;
  display: inline-block;
}

.tracklist-cover-wrapper:hover .tracklist-play-btn-overlay {
  display: block;
}

.tracklist-item img:hover + .tracklist-play-btn-overlay {
  opacity:1;
}

.tracklist-info {
  flex:1;
  display:flex;
  flex-direction: column;
  gap: 3px;
}

.tracklist-buttons {
  display:flex;
  gap:5px;
}

.tracklist-buttons button {
  background:#333;
  border:none;
  color:white;
  padding:5px 8px;
  border-radius:5px;
  cursor:pointer;
}

.tracklist-buttons button:hover {
  background:#555;
}

#tracklistModal {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  /* другие стили модалки */
}

#tracklistModal.active {
  opacity: 1;
}



.track-time-slider {
  -webkit-appearance: none; /* убираем стандартный стиль */
  appearance: none;
  width: 80%;
  height: 8px;
  background: #dddddd00;
  border-radius: 5px;
  outline: none;
  cursor: pointer;
  margin-top: 15px;
  margin-bottom: 5px;
}


/* chrome and safari */
.track-time-slider::-webkit-slider-runnable-track {
  height: 7px;
  background: #ffaa2b;
  border-radius: 55px;
}

.track-time-slider::-webkit-slider-thumb {
      -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background-color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 55px;
  cursor: pointer;
  margin-top: -5px;
}


/* firefox */
.track-time-slider::-moz-range-track {
  height: 5px;
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 55px;
}

.track-time-slider::-moz-range-progress {
  height: 9px;
  background: #ff9900;
  box-shadow: 0 0 25px #ff7300;
  border-radius: 55px;
  position: relative;   /* добавляем позиционирование */
  z-index: 2;
}

.track-time-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background-color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 55px;
  cursor: pointer;
  transition: 0.3s ease;
  position: relative;   /* добавляем позиционирование */
  z-index: 1; 
}



.images-row {
    text-align: center;
  }
  
  .image-with-caption {
    display: inline-block;
    margin: 10px;
    vertical-align: top;
  }
  
  .image-with-caption img {
    width: 150px;
    height: auto;
  }
  
  .image-with-caption figcaption {
    text-align: center;
  }
  
#weather-container {
    background: transparent;
    backdrop-filter: blur(5px);
    justify-content: center;
    display: column;
    justify-content: center;
    margin-left: 18%;
    margin-bottom: 20px;
    max-width: 400px;
    padding: 20px;
    border: 5px solid #ddd;
    border-radius: 55px;
    box-shadow: 0 0 15px #ddd;
    text-align: center;
}

#weather-info {
    margin: 0;
    margin-left: 20px;
    margin-right: 20px;
    color: #ddd;
    font-size: 20px;
    text-align: center;
}

#weather-icon {
    width: 250px;
    height: 250px;
    margin: 0 auto 10px;
    margin-bottom: 0;
    display: none;
}

#temp-div p {
    margin-top: 0;
    color: #ffd000;
    font-size: 40px;
    text-align: center;
    text-shadow: 0 0 15px #ddd;
    display: inline-block;
}

#hourly-forecast {
    margin-top: 30px;
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    justify-content: space-between;
    color: #ddd;
}

#hourly-item {
    flex: 0 0 auto;
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 10px;
    color: #ddd;
}

.hourly-item img {
    width: 30px;
    height: 30px;
    margin-bottom: 5px;
}

#hourly-heading {
    color: #fff;
    margin-top: 10px;
    margin-left: 20px;
    margin-right: 20px;
}
  
.weather-input {
    background-color: #466e7a78;
	backdrop-filter: blur(5px);
    box-shadow: 0 0 15px #ddd;
    padding: 4px;
    border: 3px solid #ddd;
    border-radius: 75px;
    color: #ddd;
    font-size: 30px;
    /* cursor: pointer; */
    transition: all 0.2s ease-in-out;
}

.weather-input:hover {
    background-color: #ddd;
    color: #466e7a78;
}

@keyframes blinkYellow {
    0%, 100% { color: #ddd; }
    50% { color: #ffd000; }
  }

@keyframes blinkYellowShadow {
    0%, 100% { text-shadow: 0 0 15px #ddd; }
    50% { text-shadow: 0 0 15px #ffd000; }
  }
  .blinking {
    animation: blinkYellow 1s infinite, blinkYellowShadow 1s infinite;
  }

.code {
    border-radius: 5px;
    padding: 10px;
    background-color: #1e1e1e;
    color: #ddd;
    font-family: JetBrains Mono;
}

.gif88x31 {
    background-color: rgba(56, 56, 56, 0.308);
    border-radius: 55px;
    backdrop-filter: blur(5px);
    margin-top: 40px;
    width: fit-content;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    bottom: 5px;
    z-index: 999998;
}

.gif88x31 img {
    width: 100px;
}

#maintenance-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7); /* затемнение */
    z-index: 9998;
  }
  
  #maintenance-modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    color: #222;
    border-radius: 8px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.2);
    padding: 32px 40px;
    z-index: 9999;
    min-width: 320px;
    text-align: center;
  }

  #countdown-container {
  display: flex;
  align-items: center;
}

#countdown-label {
  margin-right: 15px;
  font-size: 1.5em;
  font-weight: bold;
}

.countdown {
  display: flex;
  justify-content: center;
}
.countdown-item {
  text-align: center;
  margin-right: 10px;
  margin-left: 10px;
  color: #ddd;
  text-shadow: 0 0 15px #ddd;
}
.countdown-item span {
  display: block;
  font-size: 15px;
}

.label {
  font-size: 10px;
  color: #c2c1c1;
}

.summer-message {
    font-size: 20px;
    color: #ddd;
    text-shadow: 0 0 15px #ddd;
}

.beach-svg {
  margin-top: 30px;
  border-radius: 0 0 30px 30px;
  overflow: hidden;
  box-shadow: inset 0 10px 20px -10px #d9b44a;
}

.device-title.sold {
    color: #aaaaaa;
    text-shadow: 0 0 15px #aaaaaa;
}

.sold-text {
    color: rgb(255, 82, 82);
    text-shadow: 0 0 15px rgb(255, 82, 82);
    font-weight: bold;
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: flex-start;
    margin-bottom: 15px;
    margin-left: 20px;
    margin-right: 10px;
}

.projects-wrapper {
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(.4,0,.2,1), opacity 0.5s;
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
}

.projects-wrapper.open {
    max-height: 2000px;
    opacity: 1;
    margin-bottom: 32px;
}

.project-card {
    background: rgba(255,255,255,0.08);
    border: 1.5px solid #fff6;
    border-radius: 16px;
    width: calc(50% - 16px);
    min-width: 320px;
    box-sizing: border-box;
    padding: 24px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 0;
    box-shadow: 0 2px 14px #0002;
    transition: box-shadow 0.2s;
}

.project-card:hover {
    box-shadow: 0 4px 24px #0004;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 18px;
}

.project-icon {
    width: 66px;
    border-radius: 14px;
    object-fit: contain;
}

.project-title {
    font-size: 20px;
    color: #ff9900;
    text-shadow: 0 0 15px #ff7300;
    text-align: left;
}

.project-description {
    font-size: 11px;
    color: #cecece;
    margin-bottom: 0;
    text-align: left;
}

.project-date {
    font-size: 10px;
    color: #b1b1b1;
    text-align: center;
}

.project-social a.btn-social {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    border-radius: 12px;
    padding: 0;
    margin-right: 10px;
    background-color: inherit; /* Цвет из существующих btn-social классов */
    transition: background-color 0.3s;
}

.project-social a.btn-social img.social-icon {
    width: 28px;   /* размер иконки */
    height: 28px;
    pointer-events: none; /* чтобы клики шли на ссылку, а не на картинку */
}

.btn-social.telegram {
    background-color: #0088cc;
}

.btn-social.telegram:hover {
    background-color: #006699;
}

.btn-social.discord {
    background-color: #7289da;
}

.btn-social.discord:hover {
    background-color: #5b6eae;
}

.btn-social.website {
    background-color: #444;
}

.btn-social.website:hover {
    background-color: #a5a5a5;
}


.btn-social.github {
    background-color: #a5a5a5;
}

.btn-social.github:hover {
    background-color: #a5a5a5;
}

@media (max-width: 800px) {
    .project-card {
        width: 100%;
        min-width: unset;
    }
    .projects-container {
        gap: 20px;
    }
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 16px;
    max-width: 650px;
    margin: 20px auto;
    justify-items: center;
}

.about-card {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 12px -1px rgba(0,0,0,0.5);
    -webkit-box-shadow: 0 10px 12px -1px rgba(0,0,0,0.5);
    -moz-box-shadow: 0 10px 12px -1px rgba(0,0,0,0.5);
    cursor: pointer;
}

.about-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}

.about-nick {
  font-size: 1.1em;
  color: #fff;
  white-space: nowrap;    /* одна строка */
  overflow: visible;      /* показывать весь текст */
  text-overflow: unset;   /* не обрезать */
  flex: 1 1 auto;
  min-width: 0;
}

.trackLoadAnim {
    animation: trackLoadAnim 0.58s ease;
}

@keyframes trackLoadAnim {
    0% {
        opacity: 0;
        transform: translateY(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.top-part {
    position: fixed;
    top: 5px;
    z-index: 999999;
}



/* контейнеры в index */
.index-main-container {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr auto;
    gap: 20px;
    align-content: start;
}

.index-content-part1-container {
    display: flex;
    flex-direction: column;
    grid-column: 1;
    grid-row: 1;
    background-color: rgba(255,255,255,0.05);
    border-radius: 25px;
    border: 2px solid rgba(255,255,255,0.1);
    align-self: stretch;
    position: relative;
}

.index-avatar-container {
    display: flex;
    flex-direction: column;
    align-items: center;  /* Центр по горизонтали */
    justify-content: center;  /* Или flex-start/space-between для аватар+карточка */
    gap: 10px;  /* Отступ между аватаром и карточкой */
    grid-column: 2;
    grid-row: 1 / span 2;
    background-color: rgba(255,255,255,0.05);
    border-radius: 25px;
    border: 2px solid rgba(255,255,255,0.1);
    padding: 20px;  /* Добавьте padding если нужно */
}

.index-content-part2-container {
    grid-column: 1;
    grid-row: 2;  /* Добавлена новая строка внизу */
    background-color: rgba(255,255,255,0.05);
    border-radius: 25px;
    border: 2px solid rgba(255,255,255,0.1);
    align-self: start;
}

.avatar-wrapper {
    width: 70%;
    padding: 10px;
    border-radius: 50%;
    background: linear-gradient(to top, #ffbb00, #ff9a7f);
    box-shadow: 0 0 45px #ff7300;
    display: flex;
    align-items: center;
    justify-self: center;
    overflow: hidden;
    cursor: pointer;
    grid-column: 1;
    grid-row: 1;
}

.avatar-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.text-content-title {
    margin: 0;
    margin-left: 20px;
    margin-right: 20px;
    color: #ddd;
    text-align: left;
    display: inline-block;
    font-size: 40px;
    vertical-align: middle;
    margin-top: 20px;
    margin-bottom: 0px;
    font-weight: bold;
}

.text-content-desc {
    font-size: 20px;
    font-weight: normal;
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 20px;
    margin-top: 0px;
    font-weight: 300;
    /* margin: 0; */
    margin-bottom: 20px;
    color: #ddd;
    font-size: 25px;
    text-align: left;
}

@keyframes rotate360 {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.avatar-rotating img {
    animation: rotate360 1s ease-in-out;
}

.dash {
    text-decoration: double underline;
}

.dash:hover {
    cursor: pointer;
}

/* Значок статуса поверх аватарки */
.status-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 16px;
    height: 16px;
    border: 2px solid #121212; /* обводка как в дискорде */
    border-radius: 50%;
    background: gray;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.status-badge.visible {
    opacity: 1;
    transform: translateY(0);
}

.status-online { background: #43b581; }
.status-idle { background: #faa61a; }
.status-dnd { background: #f04747; }
.status-invisible { background: #747f8d; }


/* Контейнер для активностей */
.activities-container {
    margin-top: 20px;
    padding: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.activities-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.activity {
    background: rgba(255,255,255,0.1);
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.activity-name {
    font-weight: bold;
}

.activity-details {
    font-size: 0.9em;
    color: #ccc;
}


#activityBlock, #errorBox {
    width: 100%;
    max-width: 400px;
    /* Убрали align-self: flex-start — place-items центрирует */
}


/* адаптация под мобилу */
/* @media screen and (max-width: 768px) {
    .gif88x31 {
        display: none !important;
    }

    .top-title {
        display: none;
    }

    .bgCircle1,
    .bgCircle2,
    .bgCircle3,
    .bgCircle4,
    .bgCircle5 {
        animation-play-state: paused !important;
    }

    .navbar {
        display: none;
    }

    .index-avatar-container {
        display: none;
    }

    .index-main-container {
        width: 80%;
        justify-content: center;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .index-content-container {
        width: 80%;
        margin: 0 auto;
    }

    .text-content-title {
        font-size: 1.5em !important;
    }

    .text-content-desc {
        font-size: 1em !important;
    }

    .index-content-part2-container {
        grid-column: 1 !important;
        grid-row: auto;
    }

    .about-card {
        width: 50px;
        height: 50px;
    }

    .about-icon {
        width: 30px;
        height: 30px;
    }

    .about-grid {
        gap: 0px;
    }
} */
@media (max-width: 768px) {
    body {
        zoom: 0.3;
    }

    .bgCircle {
        display: none !important;
    }

    .backgroundGradient {
        display: none !important;
    }

    .index-main-container {
        width: 90% !important;
    }
}

