* {margin: 0; padding: 0;}
html {height: 100%}
body {font: 12px/18px Arial, Tahoma, Verdana, sans-serif; height: 100%; background: #f1f1f1;}
a {color: #0e6db1; outline: none; text-decoration: underline;}
a:hover {text-decoration: none;}
p {padding: 0 0 18px}
img {border: none;}
input {vertical-align: middle;}
.ib {display: inline-block; zoom: 1; vertical-align: top;}
.cb {clear: both; _font-size: 1px;}
.float-r {float: right;}
.float-l {float: left;}
.center {text-align: center;}
h1 {font-size: 18px; color: #5d5d5d; margin: 0 0 5px 0; font-weight: normal; text-align: center;}
h2 {color: #187B5C; font-size: 16px; margin: 0 0 5px 0; font-size: bold;}
#wrapper {width: 100%; min-width: 1000px; min-height: 100%; height: auto !important; height: 100%;}

/* Header
-----------------------------------------------------------------------------*/
#header {
    height: 202px;
    background: url(../imgs/header-bg.png) repeat-x 0 0;
    position: relative;
}
.top-user {
    line-height: 26px;
    color: #ffffff;
    margin: 0 10px;
    _margin: 0 5px;
    position: absolute;
}
.top-user a {color: #ffffff; text-decoration: none;}
.top-user a:hover {text-decoration: underline;}
.top-user.float-r {
    right: 0;
    top: 0;
}
.top-user.float-l {
    left: 0;
    top: 0;
}
.tu-l {left: 0;}
.tu-r {right: 0;}
.logo {background: url(../imgs/logo.png) no-repeat 0 0; width: 464px; height: 122px; position: absolute; margin-top: 37px; left: 0;}
.top-alpha {background: url(../imgs/top-alpha.png) repeat-x 0 -80px; float: right; margin-top: 54px;}
.top-alpha .inner {background: url(../imgs/top-alpha.png) no-repeat 0 0; padding: 20px 10px 20px 15px;}
.top-alpha .letters {line-height: 20px; text-align: center;}
.top-alpha .letters a {color: #ffffff; font-weight: bold; padding: 0 4px; margin-left:-3px; margin-right: 2px; text-decoration: none; display: inline-block; zoom: 1; vertical-align: top;}
.top-alpha .letters a:hover, .top-alpha .letters a.active {background: #ffffff; color: #ef0288;}
.top-menu {background: url(../imgs/top-menu-ends.png) no-repeat 0 0; position: absolute; margin: 161px 0 0 0; width: 100%; left: 0;}
.top-menu .inner {background: url(../imgs/top-menu-ends.png) no-repeat 100% -37px; height: 37px; text-align: center;}
.top-menu a {background: url(../imgs/top-menu-separator.png) no-repeat 100% 0; line-height: 37px; height: 37px; padding: 0 15px 0 11px; color: #ffffff; font-size: 14px; font-weight: bold; text-decoration: none; display: inline-block; zoom: 1; vertical-align: top;}
.top-menu a.last {background: none;}
.top-menu a.active, .top-menu a:hover {color: #007a9f;}

/* Middle
-----------------------------------------------------------------------------*/
#middle {width: 100%; padding: 0 0 84px; height: 1%;}
#middle:after {content: '.'; display: block; clear: both; visibility: hidden; height: 0;}
#container {width: 100%; float: left; overflow: hidden;}
#content {padding: 0 0 0 314px;}
.search {background: url(../imgs/search-bg.png) repeat-x 0 -53px; margin-bottom: 40px;}
.search .inner {background: url(../imgs/search-bg.png) no-repeat 0 0; height: 53px; padding-left: 3%;}
.search fieldset {border: 0 none;}
.search input {float: left; margin-top: 15px; padding: 3px;}
.search input.text {width: 60%; font-size: 16px;}
.search input.submit {width: 10%; margin: 15px 0 0 1%; padding: 3px; font-size: 15px;}
.search .select {width: 20%; margin: 15px 0 0 1%; float: left; padding: 3px;}

#catalog {
    width: 1030px; /* Задаем фиксированную ширину */
    /* display: table; */ /* Убираем автоширину */
    margin: 0 0 20px 0; /* Убираем авто-отступы по бокам, оставляем нижний */
    max-width: 100%; /* Предотвращаем выход за пределы на всякий случай */
    background: #ffffff; 
    border-collapse: collapse;
}
#catalog .title {
    background: url(../imgs/catalog-head-bg.png) repeat-x 0 0;
    color: #ffffff;
    vertical-align: middle;
    padding: 7px 10px 13px 10px;
}
#catalog td {padding: 0 10px; border: 2px solid #ffffff; font-size: 14px;}
#catalog .gray {background: #eaeaea;}

/* Убираем подчеркивание у ссылок в таблице по умолчанию */
#catalog td a {
    text-decoration: none;
}

/* Добавляем подчеркивание при наведении на ссылки в таблице */
#catalog td a:hover {
    text-decoration: underline;
}

/* Уменьшаем шрифт для колонок Тип(4), Mb(5), Bit(6) в таблице - УДАЛЕНО, теперь используется класс detail-cell */

.pagination {text-align: center; margin-top: 20px;}
.pagination a {font-weight: bold; text-decoration: none; margin: 0 -3px 0 5px; display: inline-block; zoom: 1; vertical-align: top; padding: 0 5px;}
.pagination .n {background: url(../imgs/pagination-bg.png) repeat-x 0 0; border: 1px solid #eeeeee; line-height: 18px;}

/* Styles for pagination hover and active states */
.pagination .n:hover {
    background: url(../imgs/pagination-bg.png) repeat-x 0 -18px; /* Original hover background */
    border: 1px solid #df7c1e; /* Original hover border */
    /* color: #fff; */ /* Optional: if text color should change on hover */
}

.pagination .active {
    background-color: #df7c1e;  /* Orange background */
    background-image: none;     /* Remove any background image */
    color: #fff !important;     /* White text */
    border: 1px solid #df7c1e;  /* Orange border */
    
    width: 18px;                /* Content box width - Reduced */
    height: 18px;               /* Content box height - Reduced */
    line-height: 18px;          /* For vertical centering of text - Reduced */
    padding: 0;                 /* Override default padding */
    text-align: center;         /* For horizontal centering of text */
    display: inline-block;      /* Ensure correct block behavior for width/height */
    vertical-align: top;        /* Match alignment of other pagination links */
    margin: 0 -3px 0 5px;     /* Retain original margin from .pagination a if needed, or adjust */
    border-radius: 0;           /* Ensure it's square */
    zoom: 1;                    /* Retain from .pagination a */
}

.round-box {background: #eeeeee url(../imgs/round-box-left.png) repeat-y 0 0; margin-right: 20px;}
.round-box .inner {background: url(../imgs/round-box-right.png) repeat-y 100% 0; padding: 0 32px;}
.round-box .b-top {background: url(../imgs/round-box-top.png) repeat-x 0 0;}
.round-box .b-bottom {background: url(../imgs/round-box-bottom.png) repeat-x 0 0;}
.round-box .b-top span, .round-box .b-bottom span {background: url(../imgs/round-box-corners.png) no-repeat 0 0; width: 20px; height: 20px; display: block;}
.round-box .b-top .top-left {background-position: 0 0;}
.round-box .b-top .top-right {background-position: -20px 0;}
.round-box .b-bottom .bottom-left {background-position: 0 -19px;}
.round-box .b-bottom .bottom-right {background-position: -20px -19px;}
.round-box .blue-top {background: url(../imgs/round-box-blue-center.png) repeat-x 0 0; height: 37px;}
.round-box .blue-top .top-left {background: url(../imgs/round-box-blue-left.png) no-repeat 0 0; height: 37px; width: 32px;}
.round-box .blue-top .top-right {background: url(../imgs/round-box-blue-right.png) no-repeat 0 0; height: 37px; width: 15px;}
.round-box .blue-top h1 {padding: 7px 0 0 20px; font-size: 14px; color: #ffffff; font-weight: bold;}
.lyrics {text-align: center; font-size: 14px;}

.single {background: #ffffff; border: 2px solid #CCCCCC; padding: 20px 20px 10px; width: 500px; margin: 0 auto;}
.single a {font-weight: bold;}
.single h1 {color: #333333; margin: 0 0 10px 0;}
.single table {background: #ffffff; width: 100%; border-collapse: collapse;}
.single table td {border: 2px solid #ffffff; padding: 10px;}
.single table .gray td {background: #EAEAEA;}
.single .artist {background: #ffffff; padding: 1px; border: 1px solid #CCCCCC;}
.single .first {width: 35%;}
.single .download {vertical-align: top;}
.single .download a {font-size: 14px;}

/* Sidebar
-----------------------------------------------------------------------------*/
.sidebar {float: left; width: 294px; margin-left: -100%; position: relative;}
.sidebar .block {background: #f8f9fa url(../imgs/block-bg.png) repeat-y 0 0; margin: 3px 0 5px 20px; _position: relative;}
.sidebar .block .inner {background: url(../imgs/block-bg.png) repeat-y 100% 0; _position: relative;}
.sidebar .block .header {background: url(../imgs/block-header-in.png) no-repeat 100% 0; _position: relative;}
.sidebar .block .header-in {background: url(../imgs/block-header.png) no-repeat 0 0; _position: relative;}
.sidebar .green-block .header {background: url(../imgs/block-header-in-green.png) no-repeat 100% 0; _position: relative;}
.sidebar .green-block .header-in {background: url(../imgs/block-header-green.png) no-repeat 0 0; _position: relative;}
.sidebar .block .footer {background: url(../imgs/block-footer-in.png) no-repeat 100% 0; _position: relative;}
.sidebar .block .footer-in {background: url(../imgs/block-footer.png) no-repeat 0 0; height: 17px; _position: relative;}
.sidebar .block h3 {font-size: 14px; padding: 10px 0 0 45px; line-height: 28px; color: #ffffff;}
.sidebar .menu {padding: 20px 40px;}
.sidebar .menu a {display: block; border-bottom: 1px solid #eaeaea; text-decoration: none; padding: 2px 5px 2px 20px; font-size: 14px;}
.sidebar .menu a:hover {background: #eaeaea; text-decoration: none;}
.sidebar .menu a.active {color: #d70376;}

.sidebar .login {color: #414141; padding: 15px 40px 15px 35px;}
.sidebar .login fieldset {border: 0 none;}
.sidebar .login label {display: block; margin-top: 3px;}
.sidebar .login input {width: 98%;}
.sidebar .login input.submit {background: #5fa3c0; border: 1px solid #f7d7d7; float: right; margin-top: 10px; width: auto; color: #ffffff; font-weight: bold; padding: 4px 12px;}

.sidebar .calendar {padding: 15px 40px 15px 35px; color: #414141;}
.sidebar .calendar table {width: 100%;}

/* Усиленные стили календаря для авторизованных пользователей */
.sidebar .calendar table {width: 100% !important;}
.sidebar .calendar-head {font-weight: bold !important; text-align: center !important;}
.sidebar .calendar-head td {white-space: nowrap !important;}
.sidebar .calendar-head a {color: #414141 !important;}
.sidebar .calendar-days .wk {color: #8b4395 !important;}
.sidebar .calendar-days a {color: #009933 !important; font-weight: bold !important;}
.sidebar .calendar-days td {border-bottom: 1px solid #eaeaea !important;}
.sidebar .calendar-days .last td {border-bottom: 0 none !important;}

.sidebar .calendar-head {font-weight: bold; text-align: center;}
.sidebar .calendar-head td {white-space: nowrap;}
.sidebar .calendar-head a {color: #414141;}
.sidebar .calendar-days .wk {color: #8b4395;}
.sidebar .calendar-days a {color: #009933; font-weight: bold;}
.sidebar .calendar-days td {border-bottom: 1px solid #eaeaea;}
.sidebar .calendar-days .last td {border-bottom: 0 none;}

/* Footer
-----------------------------------------------------------------------------*/
#footer {margin: -84px auto 0; min-width: 1000px; height: 84px; line-height: 84px; background: url(../imgs/footer-bg.png) repeat-x 0 0; font-size: 11px; color: #666666; text-align: right; padding: 0 10px;}

/* Media Queries
-----------------------------------------------------------------------------*/
@media screen and (max-width: 768px) {
    #wrapper {
        min-width: auto;
    }
    
    #header {
        height: auto;
        padding: 10px 0;
        background: #f1f1f1;
    }
    
    #header, #header * {
        color: #222 !important;
    }
    
    .top-user a {
        color: #222 !important;
    }
    
    .logo {
        position: relative;
        margin: 10px auto;
        left: 50%;
        transform: translateX(-50%);
        background-size: contain;
        width: 80%;
        max-width: 300px;
    }
    
    .top-alpha {
        display: none;
    }
    
    .top-menu {
        display: none;
    }
    
    .top-user {
        position: relative;
        text-align: center;
        margin: 10px 0;
        padding: 0 10px;
    }
    
    .top-user.tu-l,
    .top-user.tu-r {
        left: auto;
        right: auto;
    }
    
    #middle {
        padding: 0 0 20px;
    }
    
    #content {
        padding: 0 10px;
    }
    
    .search .inner {
        padding: 10px;
    }
    
    .search input.text {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .search .select {
        width: 100%;
        margin: 0 0 10px 0;
    }
    
    .search input.submit {
        width: 100%;
        margin: 0;
    }
    
    #catalog {
        display: block;
        overflow-x: auto;
    }
    
    .sidebar {
        float: none;
        width: 100%;
        margin: 20px 0;
    }
    
    .sidebar .block {
        margin: 10px;
        background: none;
    }
    
    .sidebar .block .inner {
        background: none;
    }
    
    .sidebar .block .header {
        background: none;
    }
    
    .sidebar .block .header-in {
        background: none;
    }
    
    .sidebar .green-block .header {
        background: none;
    }
    
    .sidebar .green-block .header-in {
        background: none;
    }
    
    .sidebar .block .footer {
        background: none;
    }
    
    .sidebar .block .footer-in {
        background: none;
    }
    
    .sidebar .block h3 {
        padding: 10px 0;
        color: #187B5C;
        border-bottom: 1px solid #eaeaea;
    }
    
    .sidebar .menu {
        padding: 10px 0;
    }
    
    .sidebar .menu a {
        padding: 8px 0;
        border-bottom: 1px solid #eaeaea;
    }
    
    .sidebar .login {
        padding: 10px 0;
    }
    
    .sidebar .calendar {
        padding: 10px 0;
    }
    
    .sidebar .calendar table {
        margin: 0 auto;
    }
    
    .sidebar .calendar-days td {
        padding: 5px;
    }
    
    #footer {
        min-width: auto;
        text-align: center;
        padding: 20px 10px;
        height: auto;
        line-height: 1.5;
    }
}

@media screen and (max-width: 480px) {
    .top-user {
        position: relative;
        text-align: center;
        margin: 10px 0;
    }
    
    .top-user.tu-l,
    .top-user.tu-r {
        left: auto;
        right: auto;
    }
    
    .top-alpha .letters {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .top-alpha .letters a {
        margin: 2px;
    }
    
    .single {
        width: 100%;
        box-sizing: border-box;
    }
    
    .top-menu a {
        font-size: 14px;
        line-height: 35px;
        height: 35px;
    }
}

/* Mobile Menu
-----------------------------------------------------------------------------*/
.mobile-menu-button {
    display: none;
    position: fixed;
    top: 10px;
    left: 10px;
    width: 30px;
    height: 25px;
    z-index: 1000;
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 100%;
    height: 3px;
    background: #222;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: #ffffff;
    z-index: 999;
    transition: left 0.3s ease;
    visibility: hidden;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
    visibility: visible;
}

/* Шапка меню */
.mobile-menu-header {
    background: linear-gradient(135deg, #5e97c3 0%, #4a87b3 100%);
    padding: 20px 16px;
    color: white;
    text-align: right;
}

.mm-user-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.mm-user-balance {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 2px;
}

.mm-user-email {
    font-size: 13px;
    opacity: 0.9;
}

.mm-guest-title {
    font-size: 18px;
    font-weight: 600;
    text-align: right;
}

/* Внутренний контент */
.mobile-menu-inner {
    padding: 8px 0;
}

/* Пункты меню */
.mm-item {
    display: flex !important;
    align-items: center;
    padding: 12px 16px !important;
    color: #000000 !important;
    text-decoration: none !important;
    transition: background-color 0.2s;
    border-bottom: none !important;
}

.mm-item:hover {
    background-color: #f0f0f0 !important;
}

.mm-icon {
    margin-right: 12px;
    flex-shrink: 0;
}

.mm-item span {
    font-size: 15px;
    color: #000000;
    font-weight: 500;
}

/* Заголовок секции */
.mm-section-title {
    padding: 16px 16px 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #5e97c3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-top: 1px solid #e0e0e0;
    margin-top: 8px;
}

/* Кнопки авторизации */
.mm-auth-buttons {
    padding: 16px;
    display: flex;
    gap: 8px;
}

.mm-auth-btn {
    flex: 1;
    display: block !important;
    background-color: #5e97c3 !important;
    color: white !important;
    text-decoration: none !important;
    padding: 10px 15px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    text-align: center !important;
    transition: background-color 0.2s !important;
    border-bottom: none !important;
}

.mm-auth-btn:hover {
    background-color: #4a87b3 !important;
    color: white !important;
}

@media screen and (max-width: 768px) {
    .mobile-menu-button {
        display: block;
    }
    
    .sidebar {
        display: none;
    }
    
    #content {
        padding: 0 10px;
    }
}

#header .header-links-row {
    float: right;
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 10px;
    margin-right: 20px;
}
.header-links-desktop {
    display: inline;
    position: static;
    margin-right: 15px;
}
.header-links-desktop a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: normal;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
    transition: color 0.2s;
    line-height: 20px;
}
.header-links-desktop a:last-child {
    margin-right: 0;
}
.header-links-desktop a:hover {
    color: #ffe082;
}
.header-links-desktop svg {
    display: inline-block;
    vertical-align: middle;
    margin-right: 3px;
}
@media screen and (max-width: 1023px) {
    #header .header-links-row {
        float: none;
        display: block;
        margin: 0;
    }
    .header-links-desktop {
        display: none;
    }
    .top-alpha {
        float: none;
        margin: 10px auto;
        width: 90%;
        margin-right: 0;
    }
}

.header-letters-search {
    display: flex;
    align-items: center;
    margin-left: 24px;
}
.letters-bg {
    background: #4a99c7;
    border-radius: 6px;
    padding: 6px 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}
.letters-bg a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    margin: 0 2px;
    padding: 2px 6px;
    border-radius: 3px;
    transition: background 0.2s, color 0.2s;
    display: inline-block;
}
.letters-bg a:hover {
    background: #187B5C;
    color: #ffe082;
}
@media screen and (max-width: 1023px) {
    .header-letters-search {
        display: none;
    }
}

.header-letters-search-demo {
    margin: 0;
    height: auto;
    max-width: 1100px;
    width: auto;
}
.letters-bg-demo {
    background: #6bb6df;
    border-radius: 16px;
    padding: 12px 32px 10px 32px;
    display: inline-block;
    min-width: 700px;
    max-width: 1100px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.letters-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 4px;
}
.letters-row:last-child {
    margin-bottom: 0;
}
.letters-bg-demo a {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1px;
    padding: 2px 8px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    display: inline-block;
}
.letters-bg-demo a:hover {
    background: #187B5C;
    color: #ffe082;
}
@media screen and (max-width: 1200px) {
    .letters-bg-demo {
        min-width: 400px;
        padding: 8px 8px 8px 8px;
    }
    .letters-row {
        gap: 6px;
    }
    .letters-bg-demo a {
        font-size: 16px;
        padding: 2px 4px;
    }
}
@media screen and (max-width: 1023px) {
    .header-letters-search-demo {
        display: none;
    }
}

.header-main {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    min-height: 140px;
    padding: 0 20px 0 0;
}
.logo {
    margin-bottom: 10px;
}
.header-letters-search-demo {
    margin: 0;
    height: auto;
}

.modern-login .input-group {
    position: relative;
    margin-bottom: 18px;
}
.modern-login .input-field {
    width: 100%;
    padding: 12px 40px 12px 36px;
    border: 1.5px solid #e0e0e0;
    border-radius: 4px;
    font-size: 16px;
    background: #fff;
    box-sizing: border-box;
    transition: border 0.2s;
}
.modern-login .input-field:focus {
    border-color: #4a99c7;
    outline: none;
}
.modern-login .input-group .input-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #4a99c7;
    pointer-events: none;
}
.modern-login .input-group .eye-icon {
    left: auto;
    right: 10px;
    cursor: pointer;
    pointer-events: auto;
    color: #4a99c7;
}
.modern-login .user-icon::before {
    content: '\1F464'; /* 👤 */
    font-family: Arial, sans-serif;
}
.modern-login .lock-icon::before {
    content: '\1F512'; /* 🔒 */
    font-family: Arial, sans-serif;
}
.modern-login .eye-icon::before {
    content: '\1F441'; /* 👁 */
    font-family: Arial, sans-serif;
}
.modern-login .error-message {
    color: #b71c1c;
    font-size: 14px;
    margin: 4px 0 10px 2px;
    display: block;
}
.modern-login .input-field.error {
    border-color: #b71c1c;
}
.modern-login .login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 18px 0 18px 0;
}
.modern-login .checkbox-label {
    display: flex;
    align-items: center;
    font-size: 11px;
    cursor: pointer;
    gap: 8px;
}
.modern-login .checkbox-label input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin-right: 6px;
}
.modern-login .forgot-link {
    color: #4a99c7;
    font-size: 17px;
    text-decoration: none;
    transition: color 0.2s;
}
.modern-login .forgot-link:hover {
    color: #187B5C;
}
.modern-login .login-btn {
    width: 100%;
    background: #4a99c7;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 20px;
    font-weight: 500;
    padding: 14px 0;
    margin-top: 10px;
    cursor: pointer;
    transition: background 0.2s;
}
.modern-login .login-btn:hover {
    background: #187B5C;
}

.modern-login .input-field.small-input {
    font-size: 13px;
    padding: 6px 28px 6px 26px;
    height: 28px;
}

.modern-login .input-group .input-icon {
    font-size: 15px;
}

.modern-login .login-row {
    font-size: 13px;
}

.modern-login .forgot-link {
    font-size: 13px;
}

/* Удаляем стили для .login-btn, если не используется */
.modern-login .login-btn { display: none; }

.modern-login .password-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    margin-top: 10px;
}

.modern-login .input-group .input-icon.gray-icon {
    color: #b0b0b0;
}

.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #4a99c7;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: bold;
    padding: 7px 22px;
    cursor: pointer;
    transition: background 0.2s;
    height: 36px;
}
.search-btn:hover {
    background: #187B5C;
}
.search-btn .search-icon {
    display: flex;
    align-items: center;
    margin-right: 4px;
}
.search-btn .search-icon svg {
    display: block;
    fill: none;
}

@media screen and (max-width: 1029px) {
    .top-alpha {
        display: none !important;
    }
}

@media screen and (min-width: 1030px) {
    #catalog td, #catalog .title {
        font-size: 14px;
    }
}

.price-red {
    color: #d32f2f;
}

#notification-container {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
}
.custom-notification {
    min-width: 260px;
    max-width: 350px;
    background: #fff;
    color: #222;
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.13);
    padding: 16px 24px 16px 20px;
    margin-bottom: 14px;
    font-size: 15px;
    font-family: Arial, sans-serif;
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 0.4s, transform 0.4s;
    pointer-events: auto;
}
.custom-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.audio-player-bar {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background: linear-gradient(to top, #e0e0e0 0%, #ffffff 100%) !important;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.13);
    z-index: 10000;
    padding: 0;
    border-top: 1px solid #e0e0e0;
    transition: box-shadow 0.2s;
    min-height: 70px;
}
.apb-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 24px 10px 16px;
}
.apb-cover {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    background: #e0e0e0;
}
.apb-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.apb-title-artist {
    display: flex;
    flex-direction: column;
    margin-right: 12px;
    flex: 1;
}
.apb-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}
.apb-artist {
    font-size: 13px;
    color: #666;
    margin-bottom: 2px;
}
.apb-comment {
    font-size: 12px;
    color: #888;
    font-style: italic;
}
.apb-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 auto;
    flex: 1;
    min-width: 200px;
    max-width: 1500px;
    justify-content: center;
    padding: 0 20px;
    width: 100%;
}
.apb-progress-bar {
    flex: 1 1 auto;
    height: 5px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    min-width: 80px;
    max-width: 4000px;
    position: relative;
    width: 100%;
}
.apb-progress-bar-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: #e0e0e0;
    z-index: 10;
    border-radius: 4px;
    overflow: hidden;
    margin: 0;
    box-sizing: border-box;
}
.apb-progress-current {
    height: 100%;
    background: #ffa726;
    width: 0%;
    border-radius: 4px;
    transition: width 0.2s;
}
.apb-time {
    font-size: 13px;
    color: #888;
    min-width: 45px;
    text-align: center;
    font-family: monospace;
    white-space: nowrap;
}
.apb-time.current {
    text-align: right;
}
.apb-time.duration {
    text-align: left;
}
.apb-playpause, .apb-cart {
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    margin: 0 8px 0 0;
    padding: 0;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}
.apb-playpause:hover, .apb-cart:hover {
    background: #e0e0e0;
    border-radius: 50%;
}
.apb-volume {
    margin-left: 8px;
    display: flex;
    align-items: center;
    color: #222;
}
@media (max-width: 700px) {
    .audio-player-bar {
        overflow-x: auto;
    }
    .apb-inner {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px;
        padding: 10px 8px;
        min-width: 480px;
    }
    .apb-cover {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }
    .apb-info {
        flex: 1 1 auto;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        min-width: 150px;
    }
    .apb-title-artist {
        width: 100%;
        min-width: 0;
        margin-right: 0;
        margin-bottom: 4px;
        display: flex;
        flex-direction: row;
        gap: 8px;
        padding-left: 0 !important;
    }
    .apb-title {
        margin-left: 0 !important;
    }
    .apb-artist,
    .apb-comment {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
        max-width: 100%;
    }
    .apb-progress {
        width: 100%;
        min-width: 0;
        flex: 0 0 auto;
        margin-bottom: 4px;
        max-width: 100%;
    }
    .apb-progress-bar {
        max-width: 100%;
        min-width: 0;
    }
    .apb-vocal-toggle {
        align-self: flex-start;
    }
    .apb-playpause, .apb-cart, .apb-volume {
        flex-shrink: 0;
        min-width: 32px;
        margin: 0 2px;
    }
    .apb-price {
        background: #e3f2fd;
        margin-right: 4px;
        padding: 2px 8px;
        font-size: 13px;
        white-space: nowrap;
    }
    .apb-time.current,
    .apb-time.duration {
        display: none !important;
    }
    .apb-volume {
        display: none !important;
    }
    .apb-price, .apb-cart {
        margin-left: 0 !important;
        margin-right: 4px !important;
    }
    .apb-price {
        order: 1;
    }
    .apb-cart {
        order: 2;
    }
}

.demo-play-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    outline: none;
    transition: background 0.2s;
    cursor: pointer;
}
.demo-play-btn:focus, .demo-play-btn:active {
    outline: none;
    box-shadow: none;
    background: #e0e0e0;
}
.demo-play-btn:hover {
    background: #e0e0e0;
}
.demo-play-btn svg {
    width: 20px;
    height: 20px;
    display: block;
}

.demo-play-btn.active svg circle,
.demo-play-btn.playing svg circle {
    fill: #ffa726 !important;
}

.demo-play-btn.paused svg circle {
    fill: #4a99c7 !important;
}

.apb-vocal-toggle {
    margin: 0;
    background: #4a99c7;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 16px;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    line-height: 1.2;
    flex: 0 0 auto;
}
.apb-vocal-toggle .mic-icon {
    color: #fff;
    transition: color 0.2s;
}
.apb-vocal-toggle:hover {
    background: #187B5C;
}
.apb-vocal-toggle.active {
    background: #d32f2f;
}
.apb-vocal-toggle.active:hover {
    background: #b71c1c;
}

.apb-price {
    background: #e3f2fd;
    color: #222;
    border-radius: 16px;
    padding: 4px 16px;
    font-weight: bold;
    margin-right: 8px;
    display: inline-block;
    vertical-align: middle;
    white-space: nowrap;
}

.apb-title-link, .apb-artist-link {
    color: #222;
    text-decoration: none;
    font-weight: bold;
}
.apb-title-link:hover, .apb-artist-link:hover {
    text-decoration: underline;
}

.apb-cart-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.apb-cart-tooltip .apb-tooltip {
    visibility: hidden;
    opacity: 0;
    width: max-content;
    max-width: 220px;
    background: #222;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 7px 14px;
    position: absolute;
    z-index: 100;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    font-size: 14px;
    pointer-events: none;
    transition: opacity 0.25s, visibility 0.25s;
    white-space: pre-line;
}
.apb-cart-tooltip:hover .apb-tooltip,
.apb-cart-tooltip:focus .apb-tooltip {
    visibility: visible;
    opacity: 1;
}
.apb-cart-tooltip .apb-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 7px;
    border-style: solid;
    border-color: #222 transparent transparent transparent;
}
.apb-cart-tooltip i.fas.fa-cart-shopping {
    font-size: 24px;
    color: #ffa726;
    vertical-align: middle;
    display: inline-block;
}
.cart-svg-fallback {
    display: none;
    vertical-align: middle;
}
.apb-cart-tooltip:not(:has(i.fas.fa-cart-shopping)) .cart-svg-fallback {
    display: inline-block;
}

/* Для кнопки в таблице */
.demo-play-btn svg circle {
    fill: #4a99c7;
    transition: fill 0.2s ease;
}

/* Состояния кнопки воспроизведения */
.demo-play-btn.playing svg circle {
    fill: #ffa726 !important;
}

.demo-play-btn.paused svg circle {
    fill: #4a99c7 !important;
}

.apb-playpause svg circle {
    transition: fill 0.2s;
    fill: #4a99c7;
}
.apb-playpause svg.pause-icon circle {
    fill: #ffa726 !important;
}

.apb-cart .fa-cart-shopping {
    color: #4a99c7 !important;
}
.apb-cart .cart-svg-fallback path,
.apb-cart .cart-svg-fallback rect,
.apb-cart .cart-svg-fallback circle {
    stroke: #4a99c7 !important;
    fill: #4a99c7 !important;
}

/* Стили для счетчика корзины в плеере */
.apb-cart-count {
    color: #4a99c7;
    font-weight: bold;
    font-size: 14px;
    margin-left: 2px;
    transition: color 0.2s;
    -webkit-user-select: none;
    user-select: none;
}
.apb-cart-count:hover {
    color: #187B5C;
    text-decoration: underline;
}

/* Tooltip для счетчика корзины в плеере */
.apb-cart-count-tooltip {
    position: relative;
    display: inline-block;
}
.apb-cart-count-tooltip .apb-cart-count-tooltip-text {
    visibility: hidden;
    opacity: 0;
    width: max-content;
    max-width: 200px;
    background: #222;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 100;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    font-size: 13px;
    font-weight: normal;
    pointer-events: none;
    transition: opacity 0.25s, visibility 0.25s;
    white-space: nowrap;
}
.apb-cart-count-tooltip:hover .apb-cart-count-tooltip-text {
    visibility: visible;
    opacity: 1;
}
.apb-cart-count-tooltip .apb-cart-count-tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #222 transparent transparent transparent;
}

@media (max-width: 700px) {
    .apb-cart-count {
        font-size: 12px;
        margin-left: 1px;
    }
    .apb-cart-count-tooltip .apb-cart-count-tooltip-text {
        font-size: 12px;
        padding: 6px 10px;
        max-width: 180px;
    }
}

.demo-play-btn.loading {
    position: relative;
    pointer-events: none;
}
.demo-play-btn.loading svg {
    opacity: 0.2;
}
.demo-play-btn.loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 18px;
    margin-left: -9px;
    margin-top: -9px;
    border: 2.5px solid #4a99c7;
    border-top: 2.5px solid #fff;
    border-radius: 50%;
    animation: demo-spin 0.7s linear infinite;
    z-index: 2;
}
@keyframes demo-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (min-width: 701px) {
  .apb-inner {
    max-width: none;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }
  .apb-progress {
    max-width: none;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }
  .apb-title-artist {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
  }
  .apb-title,
  .apb-artist {
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 100%;
  }
}