/* ===== CSS VARIABLES ===== */
:root {
    --bg-primary: #f2f3f5;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e8e9ec;
    --text-primary: #1a1c20;
    --text-secondary: #1f2937;
    --text-muted: #9ca3af;
    --border-color: #dde0e5;
    --a-color: #2c2f35;
    --h-color: #1a1c20;
    --text-color: #1a1c20;
    --text-color-reverse: #ffffff;
    --card-background-color: #ffffff;
    --form-control-color: #374151;
    --surface: rgba(255, 255, 255, 0.8);
    --a-color-hover: rgba(44, 47, 53, 0.7);
    --card_hover_opacity: 0.85;
    --card_hover_color: rgba(100, 110, 120, 0.07);
    --card_hover_shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    --navbar-surfase: rgba(255, 255, 255, 0.95);
    --cancel-button-color: #6b7280;
    --form-control-focus-box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.2);
    --form-control-focus_border_color: #6b7280;
    --btn-border_color: #d1d5db;
    --btn_background_hover_color: rgba(100, 110, 120, 0.08);
    --accent: #4b5563;
    --accent-light: #6b7280;
    --accent-soft: rgba(75, 85, 99, 0.1);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06);
    --navbar-shadow: 0 2px 20px rgba(0, 0, 0, 0.07);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg-primary: #141618;
    --bg-secondary: #1e2024;
    --bg-tertiary: #26292e;
    --text-primary: #e4e6ea;
    --text-secondary: #9aa0ab;
    --text-muted: #6b7280;
    --border-color: #2e3138;
    --h-color: #e4e6ea;
    --text-color: #e4e6ea;
    --text-color-reverse: #1e2024;
    --card-background-color: #1e2024;
    --a-color: #e4e6ea;
    --a-color-hover: rgba(228, 230, 234, 0.75);
    --form-control-color: #e4e6ea;
    --surface: rgba(255, 255, 255, 0.05);
    --card_hover_opacity: 0.8;
    --card_hover_color: rgba(255, 255, 255, 0.05);
    --card_hover_shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    --navbar-surfase: rgba(20, 22, 24, 0.95);
    --cancel-button-color: #9aa0ab;
    --form-control-focus-box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.2);
    --form-control-focus_border_color: #9ca3af;
    --btn-border_color: #3a3e47;
    --btn_background_hover_color: rgba(255, 255, 255, 0.07);
    --accent: #9ca3af;
    --accent-light: #d1d5db;
    --accent-soft: rgba(156, 163, 175, 0.1);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.45);
    --navbar-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}



.comments-container{
    width:stretch;
}
/* ===== GLOBAL RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    position: relative;
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    transition: background-color 0.25s ease, color 0.25s ease;
}

a {
    color: var(--a-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--a-color);
    text-decoration: none;
    opacity: 0.75;
}

h1 {
    color: var(--text-color);
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    transition: var(--transition);
}

h2 {
    color: var(--text-color);
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: var(--transition);
}

p {
    text-indent: 20px;
    color: var(--text-secondary);
}

hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 1.5rem 0;
}

span {
    transition: var(--transition);
}

/* ===== NAVBAR ===== */
.navbar {
    border-bottom: 1px solid var(--border-color);
    background-color: var(--navbar-surfase);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--navbar-shadow);
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    padding: 0.6rem 1rem;
    z-index: 1000;
}

.navbar-brand {
    color: var(--text-primary) !important;
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.navbar-brand:hover {
    opacity: 0.85;
}

.navbar-brand img {
    filter: drop-shadow(0 2px 6px var(--accent-soft));
    opacity: 0.7;
}

.navbar-toggler {
    border: none;
    padding: 6px;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
}

.navbar-toggler:hover {
    background: var(--btn_background_hover_color);
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.bi-list {
    color: var(--accent);
    transition: var(--transition);
}

/* ===== ALPHABET NAV ===== */
.alphabet {
    font-weight: 600;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
    padding: 4px 18px 4px 8px;
}

.alphabet a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}

.alphabet a:hover {
    background: var(--accent-soft);
    color: var(--accent);
    opacity: 1;
}

/* ===== SEARCH ===== */
.search {
    min-width: 320px;
}

@media screen and (max-width: 991px) {
    li.search {
        width: 100%;
    }
    li.search > div {
        width: 100%;
        padding: 0 16px 10px;
        box-sizing: border-box;
    }
    li.search .search-container {
        max-width: 100%;
        width: 100%;
    }
}

.search-container {
    position: relative;
    display: flex;
    align-items: stretch;
    max-width: 500px;
    width: 100%;
}

.search-input {
    width: 100%;
    height: 40px;
    padding: 0 10px 0 42px;
    font-size: 14px;
    line-height: 40px;
    border: 1px solid var(--border-color);
    border-right: none;
    border-top-left-radius: var(--radius-sm) !important;
    border-bottom-left-radius: var(--radius-sm) !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    background-color: var(--bg-secondary);
    color: var(--form-control-color);
    box-sizing: border-box;
    transition: var(--transition);
}

.search-input::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

.search-input:focus {
    outline: none;
    border-color: var(--form-control-focus_border_color);
    box-shadow: var(--form-control-focus-box-shadow);
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 13px;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    pointer-events: none;
    stroke: var(--text-muted);
}

.search-button {
    height: 40px;
    padding: 0 16px;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: var(--radius-sm) !important;
    border-bottom-right-radius: var(--radius-sm) !important;
    background-color: var(--surface);
    color: var(--a-color) !important;
    border: 1.5px solid var(--btn-border_color);
    border-left: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    flex-shrink: 0;
}

.search-button:hover {
    border-color: var(--accent) !important;
    box-shadow: -1.5px 0 0 var(--accent);
    background-color: var(--accent-soft);
    color: var(--accent) !important;
    opacity: 1;
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    cursor: pointer;
    border-radius: 50%;
    background: var(--accent-soft);
    border: 1.5px solid var(--border-color, #e0e2f0);
    margin-left: 12px;
    transition: var(--transition);
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--btn_background_hover_color);
    transform: rotate(15deg);
}

.theme-toggle .icon {
    font-size: 18px;
    display: block;
    line-height: 1;
}

/* ===== ICON ===== */
.icon {
    font-size: 22px;
    transition: var(--transition);
}

/* ===== HOVER OPACITY ===== */
.hover-opacity {
    transition: var(--transition);
}

.hover-opacity:hover {
    opacity: 0.72;
}

/* ===== NAVBAR LAYOUT ===== */
.nav-flex {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.nav-flex > li {
    align-self: center;
}

/* ===== CARDS ===== */
body, .card, .card .card-img-top {
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.card-deck.desktop {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: stretch;
    gap: 16px 0;
}

.card-deck.desktop > div {
    display: flex !important;
    margin: 10px 8px !important;
}

.card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    font-weight: 600;
}

.card:hover {
    background-color: var(--bg-secondary);
    box-shadow: var(--card_hover_shadow);
    transform: translateY(-3px);
    border-color: var(--accent-soft);
}

[data-theme="dark"] .card {
    background-color: var(--bg-secondary);
}

[data-theme="dark"] .card:hover {
    background-color: var(--bg-tertiary);
}

[data-theme="dark"] .text-muted {
    color: var(--text-muted) !important;
}

.card .card-img-top {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.card .card-body {
    padding: 0.75rem 1rem;
}

.card-header {
    --bs-card-cap-bg: var(--bg-tertiary);
    --bs-card-cap-color: var(--text-primary);
    --bs-card-border-color: var(--border-color);
    background-color: var(--bg-tertiary) !important;
    border-bottom: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

.card-body {
    color: var(--text-primary);
}

/* ===== TRACK LIST CARD ===== */
.track-list {
    border: none;
    border-bottom: 1px solid var(--border-color);
    
    box-shadow: none;
}

.track-list:hover {
    transform: none;
    background-color: var(--card_hover_color) !important;
    box-shadow: none;
}

/* ===== BUTTONS ===== */
.morebtn {
    margin: 1rem auto;
    width: fit-content;
    display: flex;
    align-items: center;
    background-color: var(--surface);
    color: var(--a-color) !important;
    border: 1.5px solid var(--btn-border_color);
    border-radius: var(--radius-sm);
    padding: 8px 20px;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    cursor: pointer;
}

.morebtn:hover {
    border-color: var(--accent) !important;
    background-color: var(--accent-soft);
    color: var(--accent) !important;
    opacity: 1;
}

.other-btn-dropdown-toggle {
    width: fit-content;
    background-color: var(--surface);
    color: var(--a-color);
    border: 1.5px solid var(--btn-border_color) !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.other-btn-dropdown-toggle:hover {
    border-color: var(--accent) !important;
    background-color: var(--accent-soft);
    color: var(--accent);
}

.other-btn {
    width: fit-content;
    display: flex;
    align-items: center;
    background-color: var(--surface);
    color: var(--a-color) !important;
    border: 1.5px solid var(--btn-border_color);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.other-btn:hover {
    border-color: var(--accent) !important;
    background-color: var(--accent-soft);
    color: var(--accent) !important;
}

.artistname-btn {
    color: var(--text-primary);
    font-weight: 600;
    background-color: var(--accent-soft);
    border: none;
    border-radius: var(--radius-sm);
    padding: 4px 10px;
    transition: var(--transition);
}

.artistname-btn:hover {
    background-color: var(--btn_background_hover_color);
    color: var(--text-primary);
}

.track-back-btn {
    font-size: 1.8rem;
    font-weight: 700;
    display: inline-block;
}

.trsl-lang-btn-group {
    display: grid;
    grid-template-columns: max-content;
    row-gap: 1rem;
}

.trsl-lang-btn {
    height: 36px;
    background-color: var(--accent-soft);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 12px;
    line-height: 1;
}

.trsl-lang-btn:hover {
    background-color: var(--btn_background_hover_color);
    color: var(--text-primary);
}

/* ===== LANGUAGE SELECTOR ===== */
.langselector {
    margin: auto;
    width: fit-content;
    background-color: var(--surface);
    color: var(--a-color) !important;
    border: 1.5px solid var(--btn-border_color);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.langselector:hover {
    border-color: var(--accent) !important;
    background-color: var(--accent-soft);
}

.dropdown-menu-langselector {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    right: 0;
    left: auto;
}

#languageForm button {
    color: var(--text-color);
}

#languageForm .active,
#languageForm .dropdown-item:hover {
    background-color: var(--card_hover_color);
    color: var(--accent);
    border-radius: 6px;
}

/* ===== FORM CONTROLS ===== */
.form-control {
    background-color: var(--bg-secondary);
    color: var(--form-control-color);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.form-control:focus {
    color: var(--form-control-color);
    background-color: var(--bg-secondary);
    border-color: var(--form-control-focus_border_color);
    box-shadow: var(--form-control-focus-box-shadow) !important;
}

/* меняет цвет крестика в форме поиска */
.form-control::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    height: 16px;
    width: 16px;
    background-color: var(--cancel-button-color);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E");
    cursor: pointer;
}

/* ===== POPOVER ===== */
.popover {
    --bs-popover-bg: var(--bg-secondary);
    --bs-popover-arrow-border: var(--border-color);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.popover .popover-header {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

#popover-layout {
    display: flex;
    flex-direction: column;
    color: var(--text-primary);
}

#yandex-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

#yandex-text-content {
    flex: 1;
}

#speak-btn {
    flex-shrink: 0;
    padding: 4px 7px;
    line-height: 1;
}

[data-theme="dark"] .btn-light {
    background-color: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .btn-light:hover,
[data-theme="dark"] .btn-light:focus,
[data-theme="dark"] .btn-light:active {
    background-color: var(--card_hover_color);
    border-color: var(--accent);
    color: var(--text-primary);
    box-shadow: none;
}

#popover-layout .btn-warning {
    background-color: var(--surface);
    color: var(--a-color) !important;
    border: 1.5px solid var(--btn-border_color);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    box-shadow: none;
}

#popover-layout .btn-warning:hover {
    border-color: var(--accent) !important;
    background-color: var(--accent-soft);
    box-shadow: none;
}

#popover-layout .btn-warning:focus,
#popover-layout .btn-warning:active,
#popover-layout .btn-warning.show {
    border-color: var(--accent) !important;
    background-color: var(--accent-soft);
    color: var(--a-color) !important;
    box-shadow: none !important;
}

#popover-layout .dropdown-menu {
    background-color: var(--bg-secondary);
    --bs-dropdown-bg: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
}

#ddlanglist {
    background-color: var(--bg-secondary);
    scrollbar-color: var(--border-color) var(--bg-secondary);
}

#ddlanglist .ddlang a {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--text-color);
    border-radius: 6px;
    transition: var(--transition);
    text-decoration: none;
}

#ddlanglist .ddlang a:hover,
#ddlanglist .ddlang a.lang-active {
    background-color: var(--card_hover_color);
    color: var(--accent);
}

.popover-spinner {
    color: var(--text-secondary);
}

/* ===== DROPDOWN MENU ===== */
.dropdown-menu {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    opacity: 1;
    --bs-dropdown-bg: var(--bg-secondary);
}

.dropdown-item {
    color: var(--text-primary);
    border-radius: 8px;
    transition: var(--transition);
    padding: 8px 12px;
    font-size: 14px;
}

.dropdown-item:hover {
    background-color: var(--card_hover_color);
    color: var(--accent);
}

/* ===== REPORT A PROBLEM ===== */
.report-a-problem-menu {
    padding: unset;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.problem-item {
    transition: var(--transition);
    color: var(--text-primary);
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
}

.problem-item:hover {
    background-color: var(--card_hover_color);
}

/* ===== SEARCH POPUP ===== */
#searchpopup {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--bg-secondary);
    color: var(--text-color);
    width: 460px;
    max-width: calc(100vw - 16px);
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 2147483647;
}

@media screen and (max-width: 991px) {
    #searchpopup {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
}

.popup-trackblock {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px;
    border-radius: 8px;
    transition: var(--transition);
}

.popup-trackblock:hover {
    background-color: var(--card_hover_color);
}

.popup-title {
    height: 50px;
    padding: 5px;
}

/* ===== LYRICS LAYOUT ===== */
.title-container {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

body.has-hero-gradient {
    background:
        radial-gradient(ellipse 120% 600px at 50% -100px, rgba(var(--hero-color), 0.5) 0%, rgba(var(--hero-color), 0.18) 35%, rgba(var(--hero-color), 0) 70%),
        var(--bg-primary);
    background-attachment: fixed;
    background-repeat: no-repeat;
}

[data-theme="dark"] body.has-hero-gradient {
    background:
        radial-gradient(ellipse 120% 600px at 50% -100px, rgba(var(--hero-color), 0.55) 0%, rgba(var(--hero-color), 0.2) 35%, rgba(var(--hero-color), 0) 70%),
        var(--bg-primary);
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.lyrics-container {
    padding-top: 20px;
}

.left-column {
    border-right: 1px solid var(--border-color);
}

.right-column {
    border-left: 1px solid var(--border-color);
}

.comments-container {
    border-top: 1px solid var(--border-color);
}

/* ===== WORD TRANSLATION ===== */
.string:hover {
    background-color: var(--accent-soft);
    border-radius: var(--radius-sm);
}

.trslwrd {
    cursor: pointer;
    font-weight: normal;
    border-radius: 4px;
    transition: var(--transition);
}

.trslwrd:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

/* ===== SECTION DIVIDERS ===== */
div.hr-bold-red {
    border: 1px solid rgba(255, 0, 0, 0.3);
    background-color: rgba(255, 0, 0, 0.3);
    border-left-width: 0px;
    display: inline-block;
    width: calc(40% - 8px);
}

div.hr-bold-red-short {
    border: 1px solid rgba(255, 0, 0, 0.3);
    background-color: rgba(255, 0, 0, 0.3);
    border-left-width: 0px;
    display: inline-block;
    width: 10%;
}

div.hr-bold-green {
    border: 1px solid rgba(0, 128, 0, 0.3);
    background-color: rgba(0, 128, 0, 0.3);
    border-left-width: 0px;
    display: inline-block;
    width: 20%;
}

div.hr-bold-blue {
    border: 1px solid rgba(0, 0, 255, 0.3);
    background-color: rgba(0, 0, 255, 0.3);
    display: inline-block;
    width: 30%;
}

/* ===== FOOTER ===== */
footer {
    border-top: 1px solid var(--border-color);
    transition: var(--transition);
    margin-top: 2rem;
}

.footer {
    width: 100%;
    background-color: var(--navbar-surfase);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--text-secondary) !important;
    font-size: 13px;
}

body.has-hero-gradient .footer {
    position: relative;
}

body.has-hero-gradient .footer::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    height: 300px;
    background: radial-gradient(ellipse 120% 300px at 50% 100%, rgba(var(--hero-color), 0.11) 0%, rgba(var(--hero-color), 0.04) 40%, rgba(var(--hero-color), 0) 70%);
    pointer-events: none;
    z-index: 0;
}

[data-theme="dark"] body.has-hero-gradient .footer::before {
    background: radial-gradient(ellipse 120% 300px at 50% 100%, rgba(var(--hero-color), 0.13) 0%, rgba(var(--hero-color), 0.05) 40%, rgba(var(--hero-color), 0) 70%);
}

.footer span,
.footer div,
.footer a {
    color: var(--text-secondary) !important;
    font-size: 13px !important;
}

.footer .container-fluid {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-disclaimer-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    gap: 4px;
}

.footer-disclaimer {
    text-align: center;
}

.footer-privacy {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-lang {
    margin-left: auto;
}

@media screen and (max-width: 767px) {
    .footer .container-fluid {
        display: grid;
        grid-template-areas:
            "email lang"
            "disclaimerwrap disclaimerwrap"
            "copy copy";
        grid-template-columns: 1fr auto;
        gap: 8px;
        padding: 12px 16px;
    }

    .footer-email            { grid-area: email; align-self: center; }
    .footer-lang             { grid-area: lang; margin-left: 0; align-self: center; justify-self: end; }
    .footer-disclaimer-wrap  { grid-area: disclaimerwrap; flex: unset; }
    .footer-copy             { grid-area: copy; text-align: center; }

}

.footer a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer a:hover {
    color: var(--accent);
    opacity: 1;
}

/* ===== BODY CONTENT ===== */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* ===== MEDIA CONTAINER ===== */
#media-container {
    width: auto;
}

/* ===== TRACKS / ALBUM LAYOUT ===== */
.alb2 div {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -20px;
    margin-left: -20px;
}

.trackpicture_small_40х40 {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.trackpicture_small_40х40 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.alb_50х50 div {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -25px;
    margin-left: -25px;
}

.trackpicture_small_50х50 {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.trackpicture_small_50х50 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bc {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 13px;
}

.artisttrack {
    font-weight: 600 !important;
    color: var(--text-primary);
}

.alb2 {
    position: relative;
    width: 100%;
    min-height: 50px;
}

.alb {
    margin: 0px 4px 0px 4px;
    margin-left: 15px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.row.alb:hover {
    background-color: var(--card_hover_color);
    border-radius: var(--radius-sm);
}

/* ===== SECTION TITLES ===== */
.title {
    padding-left: 20px;
    padding-bottom: 16px;
}

.title h2 {
    display: inline-block;
}

/* ===== AVATAR & LOGIN ===== */
#avatar {
    border-radius: 50% !important;
    width: 38px;
    height: 38px;
    padding: 0;
    background: var(--accent-soft);
    border: 1.5px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: var(--transition);
}

#avatar.hover-opacity:hover {
    opacity: 1;
}

.profile-avatar-img-lp {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* ===== BORDER / MISC ===== */
.border-top {
    border-top: 1px solid var(--border-color);
}

/* ===== FORM INLINE ===== */
.form-inline {
    flex-flow: unset;
}

/* ===== ADS / CARAMEL ===== */
.dc-progress-container {
    display: flex;
    flex-direction: row;
    width: 300px;
    padding: 10px 0;
    cursor: pointer;
}

.dc-progress {
    height: 3.5px;
    flex-grow: 1;
    border-radius: 3px;
    margin: 0 2px;
    display: flex;
    background-image: -webkit-linear-gradient(left, rgba(217, 104, 11, 0.829) 0%, rgb(255, 115, 0) 50%, rgb(104, 88, 88) 50.001%, rgb(88, 104, 89) 100%);
    background-repeat: no-repeat;
    background-size: 200%;
    background-color: rgb(219, 138, 15);
    background-position: 100% 50%;
    animation-timing-function: linear;
    animation-delay: .1s;
}

.dc-progress.active {
    animation-name: Loader;
}

.dc-progress.passed {
    background-position: 0 0;
}

.dc-animation {
    animation-duration: 10s;
}

@-webkit-keyframes Loader {
    0% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}

@keyframes Loader {
    0% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}

.dc-banner {
    visibility: hidden;
    position: absolute;
}

.dc-banner.active {
    visibility: visible;
    position: absolute;
    top: 30px;
}

.dc-pause {
    width: 300px;
}

.dc-pause:hover .dc-progress {
    animation-play-state: paused;
}

.dc-pause .dc-not-hovered { display: block; }
.dc-pause .dc-hovered { display: none; }
.dc-pause:hover .dc-not-hovered { display: none; }
.dc-pause:hover .dc-hovered { display: block; }

.dc-wrapper {
    position: sticky;
    top: 5px;
    left: 5px;
}

.mob-dc-progress-container {
    display: flex;
    flex-direction: row;
    width: 300px;
    padding: 10px 0;
    cursor: pointer;
}

.mob-dc-progress {
    height: 3.5px;
    flex-grow: 1;
    border-radius: 3px;
    margin: 0 2px;
    display: flex;
    background-image: -webkit-linear-gradient(left, rgba(217, 104, 11, 0.829) 0%, rgb(255, 115, 0) 50%, rgb(104, 88, 88) 50.001%, rgb(88, 104, 89) 100%);
    background-repeat: no-repeat;
    background-size: 200%;
    background-color: rgb(219, 138, 15);
    background-position: 100% 50%;
    animation-timing-function: linear;
    animation-delay: .1s;
}

.mob-dc-progress.active { animation-name: Loader; }
.mob-dc-progress.passed { background-position: 0 0; }
.mob-dc-animation { animation-duration: 10s; }

.mob-dc-banner {
    visibility: hidden;
    position: absolute;
}

.mob-dc-banner.active {
    visibility: visible;
    position: absolute;
    top: 30px;
}

.mob-dc-pause { width: 300px; }
.mob-dc-pause:hover .mob-dc-progress { animation-play-state: paused; }
.mob-dc-pause .mob-dc-not-hovered { display: block; }
.mob-dc-pause .mob-dc-hovered { display: none; }
.mob-dc-pause:hover .mob-dc-not-hovered { display: none; }
.mob-dc-pause:hover .mob-dc-hovered { display: block; }

.mob-content {
    padding: 3rem;
    width: 73%;
    float: right;
}

.mob-dc-wrapper {
    position: fixed;
    top: 5px;
    left: 5px;
    display: none;
}

#dc-mob-close { display: none; }

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 767px) {
    .desktop, .card-deck.desktop { display: none !important; }
    .carousel-caption { display: none; }

    .mob-dc-wrapper {
        display: block;
        position: sticky;
        position: fixed;
        top: 75%;
        left: 50%;
    }

    .mob-dc-pause {
        left: 50%;
        transform: translate(-50%);
    }

    #dc-mob-close {
        display: block;
        position: absolute;
        left: 55%;
        top: 10%;
        font-weight: bold;
        font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
        font-size: 22px;
        background: gray;
        padding: 0.3rem;
    }
}

@media screen and (min-width: 766px) {
    .mobile { display: none; }
}

@media screen and (max-width: 765px) {
    .mobile { padding-left: 10px; padding-right: 10px; }
    .mobile .card img { margin: 8px; }
    .mobile .card .me-4 { margin-right: 8px !important; }
}

/* ===== VOTE ICONS ===== */
.vote-svg {
    height: 30px;
    width: 30px;
    display: inline-block;
    color: var(--text-secondary);
    transition: var(--transition);
}

.vote-svg:hover {
    color: var(--accent);
    cursor: pointer;
}

.vote-svg svg {
    filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.3));
}

.vote-text {
    color: var(--text-secondary);
    text-align: center;
}

/* ===== COPY / REPORT ===== */
.copy {
    display: flex;
    justify-content: space-between;
    margin: 11px;
}

.copy-icon {
    display: inline-block;
    margin-right: 5px;
    width: 20px;
}

.copy-button-text { display: inline-block; }

.report-a-problem-icon {
    display: inline-block;
    margin-right: 8px;
}

#report-a-problem-button { margin-top: 20px; }

.report-a-problem-icon svg {
    height: 20px;
    fill: #f43f5e;
    margin-top: -5px;
}

.report-a-problem-button-text { display: inline-block; }

/* ===== CHECK ICONS ===== */
.check-icon-place {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.check-icon, .circle-icon-svg, .check-icon-svg {
    transition: var(--transition);
    margin-right: 8px;
    width: 20px;
    display: inline-block;
}

.dropdown-item:hover .check-icon-svg {
    position: absolute;
    fill: var(--text-secondary);
    display: inline-block;
    opacity: 1;
}

.dropdown-item:hover .circle-icon-svg { opacity: 0; }

.dropdown-item .check-icon-svg {
    position: absolute;
    fill: var(--text-secondary);
    opacity: 0;
    transition: var(--transition);
}

.dropdown-item .circle-icon-svg { fill: var(--text-secondary); }

/* ===== MODALS ===== */
#offensive-text-modal .modal-head,
#some-rows-wrong-modal .modal-head,
#whole-lyrics-wrong-modal .modal-head {
    overflow-y: unset;
}

.list-group-item.active {
    color: var(--text-primary);
    background-color: rgba(244, 63, 94, 0.12);
    border-color: rgba(244, 63, 94, 0.2);
}

.rowcover {
    width: 100%;
    height: 100%;
    background: transparent;
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    display: block;
}

.list-group-item label {
    display: inline-block;
    width: calc(100% - 30px);
    margin-bottom: 0.3rem;
}

.list-group-item input {
    vertical-align: super;
    margin-right: 1.1rem;
}

/* ===== EMPTY STATE ===== */
.empty-text {
    font-weight: 600;
    margin: 1rem 0 0.5rem;
    font-size: 2rem;
    color: var(--text-primary);
}

.add-text {
    margin-bottom: 50px;
    font-size: 20px;
    color: var(--text-secondary);
}

.empty {
    text-align: center;
    padding: 4rem 0;
    color: var(--text-muted);
}

/* ===== MISC LAYOUT ===== */
.right-row {
    padding-bottom: 2px;
    border-bottom: unset;
}

.wrong-row {
    padding-top: 2px;
    border-top: unset;
}

button:disabled {
    cursor: not-allowed;
    pointer-events: all !important;
}

.container-fluid {
    padding-right: 0px;
    padding-left: 0px;
}

ins iframe {
    height: 280px;
}

/* ===== DROPDOWN MENU CONTENT ===== */
.dropdown-menu-content {
    margin-left: 30px;
}

/* ===== CAROUSEL ===== */
.carousel-caption p {
    font-size: 20px;
    line-height: 1.4;
}

.carousel-inner .item img[src$=".svg"] {
    width: 100%;
}

/* ===== QR CODE ===== */
#qrCode {
    margin: 15px;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--bg-primary);
    box-shadow: none;
    transition: var(--transition);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background-color: var(--accent-light);
    border-color: var(--accent-light);
    color: var(--bg-primary);
    box-shadow: none !important;
}

.btn-primary:active,
.btn-primary.active,
.btn-primary:first-child:active {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--bg-primary);
    box-shadow: none !important;
}

.btn-primary:disabled,
.btn-primary.disabled {
    background-color: var(--accent);
    border-color: var(--accent);
    opacity: 0.5;
}

.btn-outline-success {
    border-color: var(--accent);
    color: var(--accent);
    background-color: transparent;
    transition: var(--transition);
}

.btn-outline-success:hover,
.btn-outline-success:focus-visible {
    background-color: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: none !important;
}

.btn-outline-success:active,
.btn-outline-success:first-child:active {
    background-color: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: none !important;
}

.btn-secondary {
    background-color: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-primary);
    transition: var(--transition);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background-color: var(--card_hover_color);
    border-color: var(--accent);
    color: var(--text-primary);
    box-shadow: none !important;
}

.btn-secondary:active,
.btn-secondary:first-child:active {
    background-color: var(--bg-tertiary);
    border-color: var(--accent);
    color: var(--text-primary);
    box-shadow: none !important;
}

.btn-link {
    color: var(--accent);
}

.btn-link:hover {
    color: var(--accent-light);
}

[data-theme="dark"] .btn-close {
    filter: invert(1) grayscale(1);
}

/* ===== FORM CONTROLS — DISABLED ===== */
.form-control:disabled,
.form-control[readonly] {
    background-color: var(--bg-tertiary);
    color: var(--text-muted);
    border-color: var(--border-color);
    opacity: 1;
}

/* ===== INPUT GROUP ===== */
.input-group-text {
    background-color: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

/* ===== MODALS ===== */
.modal-content {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom-color: var(--border-color);
    color: var(--text-primary);
}

.modal-footer {
    border-top-color: var(--border-color);
}

.modal-title {
    color: var(--text-primary);
    font-weight: 600;
}

.modal-head-divider-bottom {
    border-bottom: 1px solid var(--border-color) !important;
}

.modal-head-divider-top {
    border-top: 1px solid var(--border-color) !important;
}

.modal-body {
    color: var(--text-primary);
}

.list-group-item {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.list-group-item-action:hover,
.list-group-item-action:focus {
    background-color: var(--card_hover_color);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

/* ===== NAV PILLS (Manage sidebar) ===== */
.nav-pills .nav-link {
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    padding: 8px 14px;
    font-size: 14px;
}

.nav-pills .nav-link:hover {
    background-color: var(--card_hover_color);
    color: var(--text-primary);
}

.nav-pills .nav-link.active {
    background-color: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
}

/* ===== ALERTS ===== */
.alert {
    border-radius: var(--radius-sm);
    font-size: 14px;
    border-width: 1px;
}

.alert-success {
    background-color: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.25);
    color: var(--text-primary);
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.85);
    border-color: rgba(239, 68, 68, 0.9);
    color: #fff;
}

/* ===== DIVIDERS ===== */
hr {
    border-color: var(--border-color);
    opacity: 1;
}

/* ===== LOGIN PAGE ===== */
.login-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 36px 40px;
    max-width: 420px;
    width: 100%;
}

.login-social-section {
    display: block !important;
    margin-top: 24px;
}

.login-social-section > div {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.login-card .form-control {
    height: 40px !important;
    padding: 0 12px !important;
    font-size: 14px !important;
    line-height: 40px !important;
    border-width: 1px !important;
    border-style: solid !important;
    border-color: var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    background-color: var(--bg-primary) !important;
    color: var(--form-control-color) !important;
    box-shadow: none !important;
    transition: var(--transition) !important;
}

.login-card .form-control:focus {
    border-color: var(--form-control-focus_border_color) !important;
    box-shadow: var(--form-control-focus-box-shadow) !important;
    background-color: var(--bg-primary) !important;
    color: var(--form-control-color) !important;
    outline: none !important;
}

.login-card .form-control::placeholder {
    color: var(--text-muted) !important;
    opacity: 1 !important;
}

.login-card .form-control:-webkit-autofill,
.login-card .form-control:-webkit-autofill:hover {
    -webkit-box-shadow: 0 0 0 1000px var(--bg-primary) inset !important;
    box-shadow: 0 0 0 1000px var(--bg-primary) inset !important;
    -webkit-text-fill-color: var(--form-control-color) !important;
    caret-color: var(--form-control-color) !important;
    border-color: var(--border-color) !important;
    transition: background-color 5000s ease-in-out 0s, border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.login-card .form-control:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--bg-primary) inset, var(--form-control-focus-box-shadow) !important;
    box-shadow: 0 0 0 1000px var(--bg-primary) inset, var(--form-control-focus-box-shadow) !important;
    -webkit-text-fill-color: var(--form-control-color) !important;
    caret-color: var(--form-control-color) !important;
    border-color: var(--form-control-focus_border_color) !important;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-soft);
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: cookie-slide-up 0.3s ease;
}

.cookie-consent-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 960px;
    width: 100%;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    min-width: 200px;
}

.cookie-consent-link {
    color: var(--accent-light);
    text-decoration: underline;
}

.cookie-consent-link:hover {
    color: var(--text-primary);
}

.cookie-consent-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--btn-border_color);
    transition: var(--transition);
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.cookie-btn-accept:hover {
    background: var(--text-primary);
    border-color: var(--text-primary);
}

.cookie-btn-decline {
    background: transparent;
    color: var(--text-secondary);
}

.cookie-btn-decline:hover {
    background: var(--btn_background_hover_color);
    color: var(--text-primary);
}

.cookie-consent-hide {
    animation: cookie-slide-down 0.3s ease forwards;
}

@keyframes cookie-slide-up {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

@keyframes cookie-slide-down {
    from { transform: translateY(0);    opacity: 1; }
    to   { transform: translateY(100%); opacity: 0; }
}

@media (max-width: 576px) {
    .cookie-consent-banner {
        padding: 14px 16px;
    }
    .cookie-consent-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ===== PRIVACY TABLE ===== */
.table {
    --bs-table-bg: var(--bg-secondary);
    --bs-table-color: var(--text-primary);
    --bs-table-border-color: var(--border-color);
    --bs-table-striped-bg: var(--bg-tertiary);
    --bs-table-hover-bg: var(--card_hover_color);
}

.table thead th {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

/* ===== EXPLICIT BADGE ===== */
.explicit-badge {
    display: inline-flex;
    vertical-align: top;
    position: relative;
    margin-left: 4px;
}

    .explicit-badge .bi-explicit {
        margin-top: 8px;
        font-size: 13px;
        line-height: 1;
        width: 13px;
        height: 13px;
        color: var(--text-muted);
    }

.explicit-badge::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-sm);
    padding: 4px 8px;
    font-size: 12px;
    font-weight: normal;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 1000;
}

.explicit-badge:hover::after {
    opacity: 1;
}
