/* Header */

.new-header {
    position: fixed;
    inset: 4px 0 auto;
    z-index: 100;
    height: auto;
    padding: 0;
    background: transparent;
    transition: transform 0.25s ease;
}

.new-header .wrap {
    min-height: 66px;
    padding: 8px 12px 8px 18px;
    align-items: center;
    flex-wrap: nowrap;
    border: 1px solid var(--ui-line);
    border-radius: 18px;
    background: rgba(8, 19, 24, 0.82);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(24px);
}

.new-header.bg {
    background: transparent;
}

.new-header .logo,
.new-header .video-logo {
    position: static;
    width: auto;
    margin: 0 36px 0 0;
}

.new-header .logo a {
    display: flex;
    align-items: center;
}

.new-header .logo img {
    display: block;
    width: 46px;
    height: 46px;
    margin: 0;
    object-fit: contain;
    filter: drop-shadow(0 7px 14px rgba(231, 84, 53, 0.24));
}

.new-header nav {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    margin: 0;
}

.new-header nav > ul {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.new-header nav ul li {
    margin: 0;
}

.new-header nav ul li > a {
    min-height: 42px;
    padding: 11px 16px;
    border-radius: 12px;
    color: var(--ui-muted);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    transition: 0.2s ease;
}

.new-header nav ul li:hover > a,
.new-header nav ul li > a.active {
    color: var(--ui-text);
    background: rgba(255, 255, 255, 0.07);
}

.new-header nav ul li ul {
    top: 48px;
    min-width: 270px;
    padding: 10px;
    border: 1px solid var(--ui-line);
    border-radius: 16px;
    background: rgba(12, 27, 33, 0.98);
    box-shadow: var(--ui-shadow);
}

.new-header nav ul li ul::before {
    display: none;
}

.new-header nav ul li ul li a {
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--ui-muted);
}

.new-header nav ul li ul li a:hover {
    color: var(--ui-text);
    background: rgba(246, 165, 47, 0.1);
}

.new-header nav .search-link,
.new-header .user-link {
    position: relative;
    display: inline-flex;
    width: 42px;
    height: 42px;
    margin: 0 0 0 8px;
    flex: 0 0 42px;
    border: 1px solid var(--ui-line);
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.04);
    background-position: center;
    background-repeat: no-repeat;
    transition: 0.2s ease;
}

.new-header .user-link {
    margin-left: 14px;
}

.new-header nav .search-link {
    background: rgba(255, 255, 255, 0.04) url("../../img/temp/search-link.svg") center / 22px 22px no-repeat !important;
}

.new-header nav .search-link:hover,
.new-header nav .search-link.active,
.new-header .user-link:hover {
    border-color: rgba(38, 231, 155, 0.46);
    background-color: rgba(21, 125, 87, 0.18);
    box-shadow: inset 0 0 0 1px rgba(38, 231, 155, 0.18), 0 12px 28px rgba(0, 0, 0, 0.24);
    transform: translateY(-1px);
}

.new-header nav .search-link:hover,
.new-header nav .search-link.active {
    background: rgba(21, 125, 87, 0.18) url("../../img/temp/search-link.svg") center / 22px 22px no-repeat !important;
}

.language-switcher {
    position: relative;
    margin-left: 14px;
}

.language-switcher-current {
    display: inline-flex;
    width: 48px;
    height: 42px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid var(--ui-line);
    border-radius: 12px;
    color: var(--ui-text);
    background: rgba(255, 255, 255, 0.04);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.language-switcher-current:hover,
.language-switcher.is-open .language-switcher-current {
    border-color: rgba(38, 231, 155, 0.46);
    background: rgba(21, 125, 87, 0.18);
    box-shadow: inset 0 0 0 1px rgba(38, 231, 155, 0.18), 0 12px 28px rgba(0, 0, 0, 0.24);
    transform: translateY(-1px);
}

.language-switcher-list {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 20;
    display: none;
    min-width: 96px;
    padding: 8px;
    border: 1px solid rgba(246, 165, 47, 0.22);
    border-radius: 16px;
    background: rgba(10, 22, 27, 0.96);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(22px);
}

.language-switcher.is-open .language-switcher-list {
    display: grid;
    gap: 6px;
}

.language-switcher-list a {
    display: flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 11px;
    color: var(--ui-muted);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.language-switcher-list a:hover,
.language-switcher-list a.active {
    border-color: rgba(38, 231, 155, 0.24);
    color: var(--ui-text);
    background: rgba(13, 110, 76, 0.24);
}

.profile-block {
    top: 64px;
    right: 0;
    width: 330px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(246, 165, 47, 0.22);
    border-radius: 24px;
    background:
        radial-gradient(circle at 14% 16%, rgba(38, 231, 155, 0.14), transparent 9rem),
        radial-gradient(circle at 92% 24%, rgba(168, 50, 120, 0.22), transparent 11rem),
        rgba(10, 22, 27, 0.96);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(22px);
}

.profile-block-wrapper {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
}

.profile-text {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
}

.profile-label {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 5px 9px;
    border: 1px solid rgba(38, 231, 155, 0.22);
    border-radius: 999px;
    color: #c9f8e2;
    background: rgba(13, 110, 76, 0.22);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.profile-name {
    margin: 0;
    color: var(--ui-text);
    font-size: 20px;
    font-weight: 850;
    line-height: 1.2;
}

.profile-text-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-text-flex span {
    color: var(--ui-muted);
    font-size: 13px;
    font-weight: 700;
}

.profile-text-flex strong {
    color: #ffb13b;
    font-size: 15px;
    font-weight: 900;
}

.profile-actions a {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 107, 107, 0.28);
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, rgba(255, 155, 47, 0.18), rgba(213, 61, 117, 0.22));
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.profile-actions a:hover {
    border-color: rgba(255, 107, 107, 0.62);
    background: linear-gradient(135deg, rgba(255, 155, 47, 0.32), rgba(213, 61, 117, 0.36));
    transform: translateY(-1px);
}
