:root {
    /* Liquid Glass effect variables */
    --shadow-offset: 0;
    --shadow-blur: 20px;
    --shadow-spread: -5px;
    --shadow-color: rgba(255, 255, 255, 0.7);
    --tint-color: 255, 255, 255;
    --tint-opacity: 0.4;
    --frost-blur: 6px;
    --noise-frequency: 0.008;
    --distortion-strength: 77;
    --outer-shadow-blur: 24px;
}

body { font-family: 'IBM Plex Mono', monospace; background-color: #fff; margin: 0; padding: 0; color: #000; }
.header-bg {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 60px;
z-index: 999;
isolation: isolate;
}

.header-bg::before {
content: '';
position: absolute;
inset: 0;
z-index: 0;
background-color: rgba(var(--tint-color), var(--tint-opacity));
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-bg::after {
content: '';
position: absolute;
inset: 0;
z-index: -1;
backdrop-filter: blur(var(--frost-blur));
filter: url(#glass-distortion);
isolation: isolate;
-webkit-backdrop-filter: blur(var(--frost-blur));
-webkit-filter: url("#glass-distortion");
}
.header {
display: grid;
grid-template-columns: auto 1fr auto;
align-items: center;
justify-items: center;
padding: 0 30px;
height: 60px;
background: none;
border: none;
border-radius: 8px;
position: fixed;
top: 0;
left: 50%;
transform: translateX(-50%);
max-width: 1082px;
width: calc(100% - 30px);
z-index: 1000;
box-sizing: border-box;
}
.header-logo {
display: flex;
align-items: center;
justify-content: center;
font-family: 'IBM Plex Mono', monospace;
font-weight: 700;
font-size: 2em;
letter-spacing: 2px;
user-select: none;
height: 60px;
}
.header-logo a {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
}
.header-logo img {
height: 32px;
width: auto;
display: block;
margin: 0 8px;
}
.header-center {
display: flex;
align-items: center;
justify-content: center;
height: 60px;
width: 100%;
}
.search-bar {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: clamp(250px, 35vw, 300px);
max-width: 100%;
display: flex;
align-items: center;
justify-content: center;
height: 40px;
margin: 0;
padding: 0;
z-index: 1;
}
.search-input-wrapper {
display: flex;
align-items: center;
position: relative;
width: 100%;
}
.search-bar .search-input {
height: 36px;
font-size: clamp(0.9em, 1.5vw, 1.05em);
display: flex;
align-items: center;
width: 100%;
padding-left: 1rem;
padding-right: 2.5rem;
border-radius: 999px;
border: 1px solid #ccc;
box-shadow: none;
background: rgba(255, 255, 255, 0.25);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
color: #222;
transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
box-sizing: border-box;
}
.search-bar .search-input:focus {
outline: none;
border-color: #999;
background: rgba(255, 255, 255, 0.35);
}
.search-bar .search-input::placeholder {
color: #555;
opacity: 0.7;
}
.search-bar .filter-btn {
position: absolute;
right: 0.5rem;
top: 50%;
transform: translateY(-50%);
margin-left: 0;
z-index: 2;
background: rgba(255, 255, 255, 0.8) !important;
border: none;
box-shadow: none;
transition: color 0.2s, background 0.2s;
display: none;
align-items: center;
justify-content: center;
width: 2.25rem;
height: 2.25rem;
border-radius: 50%;
cursor: pointer;
}
.search-bar .filter-btn.active {
display: flex;
}
.search-bar .filter-btn:hover {
background: rgba(255, 255, 255, 1) !important;
box-shadow: none;
color: #4285f4;
}
.search-bar .filter-btn .material-symbols-outlined {
font-size: clamp(20px, 2.5vw, 28px);
color: #666 !important;
font-variation-settings: 'FILL' 0, 'wght' 700, 'GRAD' 0, 'opsz' 48;
text-shadow: none;
transition: color 0.2s;
display: flex;
align-items: center;
justify-content: center;
}
.search-bar .filter-btn:hover .material-symbols-outlined {
color: #222 !important;
}
.header-icons {
display: flex;
align-items: center;
justify-content: center;
gap: 24px;
position: relative;
height: 60px;
}
#languageBtn {
position: relative;
}
.icon-btn, .balance {
display: flex;
align-items: center;
justify-content: center;
height: 40px;
}

.balance {
background: none;
border: none;
cursor: pointer;
padding: 8px 12px;
border-radius: 8px;
font-weight: 500;
color: #000;
transition: background-color 0.2s ease;
font-size: 16px;
}

.balance:hover {
background-color: #f5f5f5;
}
.icon-btn {
background: none;
border: none;
cursor: pointer;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
border-radius: 8px;
transition: background-color 0.2s ease;
}
.icon-btn:hover {
background-color: #f5f5f5;
}
.icon-btn .material-symbols-outlined {
font-size: 22px;
color: #000;
line-height: 1;
display: flex;
align-items: center;
justify-content: center;
height: 24px;
}
.icon-btn:focus { outline: none; }
.profile-popup, .filter-popup {
display: none;
position: absolute;
top: 63px; /* Position below the header with new top offset */
background: #fff;
border: 1px solid #ccc;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0,0,0,0.07);
z-index: 100;
}
.main-container { padding: 90px 40px 20px; }
a { color: #000; text-decoration: none; }

.email-verify-banner {
  margin: 70px auto 0;
  max-width: 1082px;
  width: calc(100% - 30px);
  background: #fff3cd;
  border: 1px solid #ffe69c;
  color: #664d03;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  box-sizing: border-box;
}
.email-verify-title { font-weight: 700; margin-bottom: 4px; }
.email-verify-text { font-size: 0.95em; margin: 0; }
.email-verify-actions { display: flex; align-items: flex-end; gap: 6px; flex-direction: column; min-width: 180px; }
.email-verify-btn {
  background: #000;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 600;
  transition: opacity 0.2s;
}
.email-verify-btn.secondary {
  background: #f0f0f0;
  color: #111;
}
.email-verify-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.email-verify-status { font-size: 0.9em; color: #664d03; min-height: 18px; text-align: right; align-self: stretch; }

.verify-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.verify-modal.active { display: flex; }
.verify-modal-card {
  background: #fff;
  border-radius: 12px;
  padding: 22px 20px;
  max-width: 360px;
  width: 90vw;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  text-align: center;
}
.verify-modal-title { font-size: 1.2em; font-weight: 700; margin-bottom: 8px; }
.verify-modal-text { margin: 0 0 16px 0; color: #444; }

@media (max-width: 768px) {
  .email-verify-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 14px 16px;
  }
  .email-verify-actions {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    min-width: 0;
  }
  .email-verify-btn {
    width: 100%;
    text-align: center;
  }
  .email-verify-status { text-align: left; }
}

/* Стили для карточек товара */
.beat-card {
border-radius: 8px !important;
}

.beat-card img {
border-radius: 8px !important;
}

.beat-card .play-button {
opacity: 0 !important;
transition: opacity 0.3s ease !important;
}

.beat-card:hover .play-button,
.beat-card .beat-cover:hover .play-button {
opacity: 1 !important;
}

/* Кнопки внутри карточек: без принудительной черной обводки */
.beat-card .price-btn,
.beat-card .favorite-btn,
.beat-card .icon-btn {
border-radius: 6px !important;
}

/* При наведении на обложку показываем кнопку play */
.beat-card .beat-cover:hover .play-button {
opacity: 1 !important;
}

/* При клике на обложку также показываем кнопку play */
.beat-card .beat-cover:active .play-button {
opacity: 1 !important;
}

/* Стили для div элементов внутри beat-cover (заглушки обложек) */
.beat-card .beat-cover > div {
border-radius: 8px !important;
}

.lang-popup {
display: none;
position: absolute;
top: 63px;
right: 0;
min-width: 110px;
background: #fff;
border: 1px solid #ccc;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0,0,0,0.07);
z-index: 100;
}
.lang-popup.active {
display: block;
}
.filter-popup {
/* Positioned relative to the form */
top: 55px; /* Updated position for new header */
left: 50%;
transform: translateX(-50%);
width: 340px;
max-width: calc(100vw - 32px);
padding: 16px;
box-sizing: border-box;
position: absolute;
}

.filter-popup.active {
display: block;
}
.filter-popup .form-group {
margin-bottom: 12px;
}
.filter-popup label {
display: block;
margin-bottom: 6px;
font-size: 0.9em;
color: #333;
}
.filter-popup select, .filter-popup input {
width: 100%;
padding: 8px 12px;
border: 1px solid #ccc;
border-radius: 8px;
font-family: inherit;
font-size: 0.9em;
box-sizing: border-box;
}
.filter-popup .bpm-inputs {
display: flex;
gap: 8px;
align-items: center;
}
.filter-popup .bpm-inputs input { width: 100%; }
.filter-popup .apply-btn {
width: 100%;
padding: 10px;
border: none;
border-radius: 8px;
background-color: #000;
color: #fff;
font-family: inherit;
font-size: 1em;
cursor: pointer;
margin-top: 8px;
}
.profile-popup {
right: 60px; /* Adjust based on icon size and gap */
min-width: 160px;
}
.profile-popup.active, .filter-popup.active {
display: block;
}
.profile-popup a, .profile-popup form button {
display: block;
padding: 10px 18px;
color: #111;
text-decoration: none;
font-size: 1em;
background: none;
border: none;
width: 100%;
text-align: left;
cursor: pointer;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
box-sizing: border-box;
}
.lang-popup a.selected {
font-weight: bold;
background: #f0f0f0;
}
.lang-option {
display: block;
padding: 10px 18px;
color: #111;
text-decoration: none;
font-size: 1em;
background: none;
border: none;
width: 100%;
text-align: left;
cursor: pointer;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
box-sizing: border-box;
}
.lang-option:hover {
background: #f5f5f5;
}
.lang-option.selected {
font-weight: bold;
background: #f0f0f0;
}
.profile-popup a:hover, .profile-popup form button:hover {
background: #f5f5f5;
}
.profile-popup .divider {
height: 1px;
background: #eee;
margin: 4px 0;
}

/* Hamburger menu styles */
.hamburger-menu {
display: flex;
background: none;
border: none;
cursor: pointer;
padding: 0;
z-index: 1001;
width: 40px;
height: 40px;
align-items: center;
justify-content: center;
border-radius: 6px;
transition: background-color 0.2s;
position: relative;
}

.hamburger-menu:hover {
background-color: #f5f5f5;
}

.hamburger-menu .material-symbols-outlined {
font-size: 24px;
color: #333;
}

.hamburger-menu.active .material-symbols-outlined {
color: #000;
}

.hamburger-menu .notifications-badge {
position: absolute;
top: 6px;
right: 6px;
width: 10px;
height: 10px;
border-radius: 50%;
background: #ff4d4f;
border: 2px solid #fff;
pointer-events: none;
}

/* Mobile menu overlay - removed, no overlay needed */
.mobile-menu-overlay {
display: none;
}

.mobile-menu {
position: fixed;
top: 60px;
right: -320px;
width: 300px;
max-height: calc(100vh - 80px);
background-color: #fff;
border: 1px solid #ccc;
border-radius: 8px;
box-shadow: 0 4px 16px rgba(0,0,0,0.15);
z-index: 1000;
overflow-y: auto;
overflow-x: hidden;
padding: 16px;
box-sizing: border-box;
display: block;
transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
/* Скрываем скроллбар, но оставляем возможность скролла */
scrollbar-width: none; /* Firefox */
-ms-overflow-style: none; /* IE и Edge */
}

.mobile-menu::-webkit-scrollbar {
display: none; /* Chrome, Safari, Opera */
}

.mobile-menu.active {
right: 8px;
}

/* Позиционирование для ПК - меню левее */
@media (min-width: 769px) {
.mobile-menu {
right: -320px;
width: 320px;
top: 60px;
}

.mobile-menu.active {
right: max(calc((100vw - 1800px) / 2 + 8px), 8px);
}
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 0;
    border-bottom: none;
}

.mobile-menu-title {
font-size: 1.2em;
font-weight: 600;
color: #333;
}

.mobile-menu-close {
background: none;
border: none;
font-size: 24px;
cursor: pointer;
color: #666;
padding: 0;
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 6px;
transition: background-color 0.2s;
}

.mobile-menu-close:hover {
background-color: #f5f5f5;
}

.mobile-menu-section {
margin-bottom: 30px;
}

.mobile-menu-section h3 {
font-size: 0.9em;
color: #666;
text-transform: uppercase;
letter-spacing: 0.5px;
margin-bottom: 15px;
}

.mobile-menu-item {
display: flex;
align-items: center;
padding: 12px 0;
color: #333;
text-decoration: none;
border-radius: 8px;
transition: background-color 0.2s;
margin-bottom: 4px;
}

.mobile-menu-item:hover {
background-color: #f5f5f5;
}

.mobile-menu-item .material-symbols-outlined {
margin-right: 12px;
font-size: 20px;
color: #666;
}

.mobile-menu-item .menu-pill {
margin-left: auto;
padding: 2px 10px;
border-radius: 999px;
background: #ff4d4f;
color: #fff;
font-size: 0.75rem;
font-weight: 600;
line-height: 1;
}

.mobile-menu-item.balance {
font-weight: 600;
font-size: 1.1em;
color: #000;
padding: 16px 0;
border-bottom: none;
margin-bottom: 20px;
display: flex;
align-items: center;
gap: 12px;
}

.mobile-menu-item.balance .balance-avatar {
width: 48px;
height: 48px;
border-radius: 50%;
object-fit: cover;
box-shadow: 0 1px 4px rgba(0,0,0,0.1);
background: #f5f5f5;
flex-shrink: 0;
}

.mobile-menu-item.balance .balance-avatar-placeholder {
width: 48px;
height: 48px;
border-radius: 50%;
background: #f5f5f5;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}

.mobile-menu-item.balance .balance-avatar-placeholder .material-symbols-outlined {
font-size: 32px;
color: #999;
}

.mobile-menu-item.balance .balance-info {
display: flex;
flex-direction: column;
gap: 4px;
flex: 1;
min-width: 0;
}

.mobile-menu-item.balance .balance-username {
font-size: 0.95em;
font-weight: 600;
color: #000;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.mobile-menu-item.balance .balance-amount {
font-size: 0.9em;
font-weight: 500;
color: #666;
}

.mobile-menu-item.balance .material-symbols-outlined {
display: none;
}

.mobile-menu-divider {
height: 1px;
background-color: transparent;
margin: 20px 0;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
.header {
grid-template-columns: 1fr auto;
padding: 0 8px;
height: 56px;
width: 100vw;
border-radius: 8px;
top: 0;
position: fixed;
left: 50%;
transform: translateX(-50%);
max-width: 1082px;
box-sizing: border-box;
}
.header-logo {
display: none;
}
.header-center {
width: 100%;
display: flex;
align-items: center;
justify-content: flex-start;
height: 56px;
position: relative;
align-self: stretch;
}
.search-bar {
position: relative;
left: auto;
top: auto;
transform: none;
width: calc(100% - 120px);
max-width: clamp(150px, 30vw, 280px);
min-width: 100px;
margin: 0;
padding: 0;
height: 40px;
display: flex;
align-items: center;
justify-content: flex-start;
z-index: 1;
align-self: center;
}
.search-bar .search-input {
height: 36px;
font-size: 1em;
padding-left: 0.875rem;
padding-right: 2.25rem;
}
.header-icons {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 8px;
position: static;
height: 56px;
flex-shrink: 0;
}
.header-icons .icon-btn {
width: 36px;
height: 36px;
}
.header-icons .balance {
font-size: 0.9em;
height: 36px;
min-width: 40px;
}
.hamburger-menu {
position: static;
margin: 0;
margin-right: clamp(8px, 3vw, 24px);
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
z-index: 1001;
}
.main-container {
padding: 90px 4vw 16px 4vw;
max-width: 100vw;
box-sizing: border-box;
}

@media (max-width: 768px) {
.filter-popup.active {
display: block;
position: absolute;
top: 55px;
left: 50%;
transform: translateX(-50%);
width: calc(100vw - 32px);
max-width: 340px;
z-index: 1001;
}
}

.mobile-menu {
top: 56px;
right: -320px;
width: calc(100vw - 16px);
max-width: 300px;
max-height: calc(100vh - 72px);
overflow-y: auto;
overflow-x: hidden;
/* Скрываем скроллбар, но оставляем возможность скролла */
scrollbar-width: none; /* Firefox */
-ms-overflow-style: none; /* IE и Edge */
}

.mobile-menu::-webkit-scrollbar {
display: none; /* Chrome, Safari, Opera */
}

.mobile-menu.active {
right: 8px;
}
}

@media (max-width: 480px) {
.header {
height: 48px;
grid-template-columns: 1fr auto;
padding: 0 6px;
width: 100vw;
left: 50%;
transform: translateX(-50%);
max-width: 1082px;
}
.header-center {
height: 48px;
position: relative;
align-self: stretch;
}
.search-bar {
position: relative;
left: auto;
top: auto;
transform: none;
width: calc(100% - 100px);
max-width: clamp(120px, 28vw, 200px);
min-width: 80px;
height: 32px;
margin: 0;
padding: 0;
z-index: 1;
align-self: center;
}
.search-bar .search-input {
height: 28px;
font-size: 0.95em;
padding-left: 0.75rem;
padding-right: 2rem;
}
.header-icons {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 6px;
position: static;
height: 48px;
flex-shrink: 0;
}
.header-icons .icon-btn {
width: 32px;
height: 32px;
}
.header-icons .balance {
font-size: 0.85em;
height: 32px;
min-width: 35px;
}
.hamburger-menu {
width: 32px;
height: 32px;
margin: 0;
position: static;
}
.main-container {
padding: 76px 2vw 8px 2vw;
max-width: 100vw;
box-sizing: border-box;
}
}

@media (max-width: 700px) {
.header {
padding: 0 8px;
left: 50%;
transform: translateX(-50%);
max-width: 1082px;
}
.search-bar .filter-btn {
display: none !important;
}
.search-bar .filter-btn.active {
display: flex !important;
}
}



/* Плавный скролл для всего сайта */
html {
scroll-behavior: smooth;
}

/* Анимация для кнопки добавления в корзину */
.favorite-btn.add-to-cart-async {
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}

.favorite-btn.add-to-cart-async:hover {
background-color: #f5f5f5;
border-color: #bbb;
}

.favorite-btn.add-to-cart-async:active {
transform: scale(0.95);
}

.favorite-btn.add-to-cart-async.added {
background-color: #000;
border-color: #000;
color: white;
animation: cartSuccess 0.6s ease;
}

.favorite-btn.add-to-cart-async.added .material-symbols-outlined {
animation: iconBounce 0.6s ease;
}

@keyframes cartSuccess {
0% {
transform: scale(1);
background-color: #f5f5f5;
border-color: #ddd;
color: #000;
}
50% {
transform: scale(1.1);
background-color: #000;
border-color: #000;
color: white;
}
100% {
transform: scale(1);
background-color: #000;
border-color: #000;
color: white;
}
}

@keyframes iconBounce {
0%, 100% {
transform: scale(1);
}
50% {
transform: scale(1.3);
}
}
