/* Music System Styles */
.music-section {
    background: linear-gradient(135deg, rgba(255, 180, 0, 0.05) 0%, rgba(255, 180, 0, 0.02) 100%);
    min-height: calc(100vh - 200px);
    padding-bottom: 200px;
    transition: padding-bottom 0.3s var(--ease);
}

.music-player.active ~ .music-section {
    padding-bottom: 300px;
}

.auth-required {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 500px;
    margin: 0 auto;
}

.auth-required i {
    font-size: 4rem;
    color: var(--yellow);
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.auth-required h3 {
    font-family: 'Druk Wide', sans-serif;
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.auth-required p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.nav-link{
    color:var(--white);
    text-decoration:none;
    font-size:0.9rem;
    font-weight:500;
    letter-spacing:0.1em;
    text-transform:uppercase;
    position:relative;
    opacity:0.8;
    transition:all 0.4s var(--ease);
    padding:0.5rem 0
}
.nav-link:hover{
    opacity:1
}
.nav-link::after{
    content:'';
    position:absolute;
    bottom:0;
    left:0;
    width:100%;
    height:1px;
    background:var(--yellow);
    transform:scaleX(0);
    transform-origin:right;
    transition:transform 0.6s var(--ease)
}
.nav-link:hover::after {
    transform:scaleX(1);
    transform-origin:left
}

.logins-btn {
    display: block !important;
    width: 100% !important;
    margin-top: 1rem !important;
    background: var(--yellow) !important;
    color: var(--black) !important;
    border: none !important;
    padding: 1.2rem 2rem !important;
    font-family: 'Druk Wide', sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    transition: all 0.3s var(--ease) !important;
    text-align: center !important;
    font-size: 1rem !important;
}

.logins-btn:hover {
    background: #ffa500 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(255, 180, 0, 0.3) !important;
}

.logins-btn:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.upload-btn {
    display: block !important;
    width: 100% !important;
    margin-top: 1rem !important;
    background: var(--yellow) !important;
    color: var(--black) !important;
    border: none !important;
    padding: 1.2rem 2rem !important;
    font-family: 'Druk Wide', sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    transition: all 0.3s var(--ease) !important;
    text-align: center !important;
    font-size: 1rem !important;
}

.upload-btn:hover {
    background: #ffa500 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(255, 180, 0, 0.3) !important;
}

.upload-btn:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Стили для неавторизованных пользователей */
.direct-track-notice {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 180, 0, 0.1);
    border: 1px solid var(--yellow);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.direct-track-notice i {
    font-size: 2rem;
    color: var(--yellow);
    margin-bottom: 1rem;
}

.direct-track-notice h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.direct-track-notice p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

/* Music Container */
.music-container {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* Music Tabs */
.music-tabs {
    display: flex;
    background: rgba(30, 30, 30, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
}

.music-tab {
    flex: 1;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 1.2rem 1.5rem;
    font-family: 'Druk Wide', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.music-tab:last-child {
    border-right: none;
}

.music-tab:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.music-tab.active {
    color: var(--yellow);
    background: rgba(255, 180, 0, 0.1);
}

.music-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--yellow);
}

.music-tab i {
    margin-right: 0.5rem;
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 2rem;
    min-height: 400px;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s var(--ease);
}

/* Search and Filter Styles */
.music-search {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    align-items: center;
    flex-wrap: wrap;
}

.search-container {
    position: relative;
    flex: 1;
    min-width: 300px;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s var(--ease);
}

.search-input:focus {
    outline: none;
    border-color: var(--yellow);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 2px rgba(255, 180, 0, 0.2);
}

.search-container .fa-search {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
}

.clear-search {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 50%;
    transition: all 0.3s var(--ease);
    display: none;
}

.clear-search:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.clear-search.visible {
    display: block;
}

.filter-container {
    min-width: 200px;
}

.filter-select {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--white);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}

.filter-select:focus {
    outline: none;
    border-color: var(--yellow);
    background-color: rgba(255, 255, 255, 0.08);
}

.filter-select option {
    background: #1a1a1a;
    color: var(--white);
}

/* Loading state for search */
.search-loading {
    position: relative;
    opacity: 0.7;
}

.search-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 3rem;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid var(--yellow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Music Grid */
.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Track Card */
.track-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s var(--ease);
    cursor: pointer;
    position: relative;
}

.track-card:hover {
    transform: translateY(-5px);
    border-color: var(--yellow);
    box-shadow: 0 10px 30px rgba(255, 180, 0, 0.15);
}

.track-image {
    position: relative;
    height: 160px;
    background: linear-gradient(135deg, rgba(255, 180, 0, 0.1), rgba(255, 180, 0, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.track-image i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s var(--ease);
}

.track-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s var(--ease);
}

.track-card:hover .track-overlay {
    opacity: 1;
}

.track-card:hover .track-image i {
    transform: scale(0.8);
    opacity: 0.5;
}

.play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--yellow);
    border: none;
    color: var(--black);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn:hover {
    transform: scale(1.1);
    background: #ffa500;
}

.track-info {
    padding: 1.2rem;
}

.track-title {
    font-family: 'Druk Wide', sans-serif;
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.track-artist {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.track-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plays {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.plays i {
    color: var(--yellow);
}

/* Действия с треком */
.track-actions {
    display: flex;
    gap: 0.5rem;
}

.favorite-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    padding: 0.3rem;
}

.favorite-btn:hover {
    color: #e74c3c;
    transform: scale(1.2);
}

.favorite-btn.active {
    color: #e74c3c;
}

.favorite-btn.active:hover {
    color: #c0392b;
}

.action-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 4px;
    transition: all 0.3s var(--ease);
    font-size: 0.9rem;
}

.action-btn:hover {
    color: var(--yellow);
    background: rgba(255, 255, 255, 0.1);
}

.download-btn:hover {
    color: #27ae60;
}

.share-btn:hover {
    color: #3498db;
}

/* No Tracks State */
.no-tracks {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.5);
    grid-column: 1 / -1;
}

.no-tracks i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

.no-tracks h3 {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    font-family: 'Druk Wide', sans-serif;
}

/* No results state */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 2rem;
    color: rgba(255, 255, 255, 0.5);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.no-results h3 {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    font-family: 'Druk Wide', sans-serif;
}

/* Upload Container */
.upload-container {
    max-width: 600px;
    margin: 0 auto;
}

.upload-card {
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s var(--ease);
}

.upload-card:hover {
    border-color: var(--yellow);
}

.upload-icon {
    font-size: 4rem;
    color: var(--yellow);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.upload-card h3 {
    font-family: 'Druk Wide', sans-serif;
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.upload-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

/* Upload Form */
.upload-form {
    max-width: 400px;
    margin: 0 auto 2rem;
}

.upload-form .form-group {
    margin-bottom: 1.5rem;
}

.upload-input {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s var(--ease);
    display: block;
}

.upload-input:focus {
    outline: none;
    border-color: var(--yellow);
    background: rgba(255, 255, 255, 0.08);
}

.file-input {
    position: relative;
}

.file-label {
    display: block;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s var(--ease);
    text-align: center;
}

.file-label:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--yellow);
    color: var(--white);
}

.file-label i {
    margin-right: 0.5rem;
    color: var(--yellow);
}

#audioFile {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-name {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

.upload-submit-btn {
    display: block;
    width: 100%;
    background: var(--yellow);
    color: var(--black);
    border: none;
    padding: 1.2rem 2rem;
    font-family: 'Druk Wide', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    text-align: center;
    font-size: 1rem;
    margin-top: 1rem;
}

.upload-submit-btn:hover {
    background: #ffa500;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 180, 0, 0.3);
}

.upload-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Upload Rules */
.upload-rules {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: left;
    border-left: 3px solid var(--yellow);
}

.upload-rules h4 {
    color: var(--yellow);
    margin-bottom: 1rem;
    font-family: 'Druk Wide', sans-serif;
    font-size: 1rem;
}

.upload-rules ul {
    color: rgba(255, 255, 255, 0.7);
    padding-left: 1.2rem;
    line-height: 1.6;
}

.upload-rules li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Music Player */
.music-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s var(--ease);
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.5);
}

.music-player.active {
    transform: translateY(0);
}

/* Optimized Player Layout */
.player-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1600px;
    margin: 0 auto;
    gap: 2rem;
}

/* Left Section - Track info and volume */
.player-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    min-width: 300px;
}

.track-info {
    flex: 1;
    min-width: 200px;
}

.current-track {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.current-track i {
    font-size: 1.5rem;
    color: var(--yellow);
}

.track-details .track-title {
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.track-details .track-artist {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* Volume Section */
.volume-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

/* Center Section - Main controls */
.player-controls {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex: 2;
    justify-content: center;
    min-width: 300px;
}

.control-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: var(--yellow);
    color: var(--black);
    transform: scale(1.1);
}

.control-btn#playBtn {
    width: 55px;
    height: 55px;
    background: var(--yellow);
    color: var(--black);
    font-size: 1.2rem;
}

.control-btn#playBtn:hover {
    background: #ffa500;
    transform: scale(1.15);
}

/* Right Section - Additional controls */
.player-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: flex-end;
    min-width: 100px;
}

/* Progress Bar - Full width at bottom */
.progress-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.time-current,
.time-total {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    min-width: 40px;
    font-family: 'Orbitron', monospace;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: height 0.3s var(--ease);
}

.progress-bar:hover {
    height: 8px;
}

.progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--yellow);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

/* Volume Slider - Improved positioning */
.volume-slider {
    position: absolute;
    bottom: 50px;
    left: 0;
    width: 120px;
    background: rgba(30, 30, 30, 0.95);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(10px) scale(0.9);
    transition: all 0.3s var(--ease);
    z-index: 1001;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.volume-slider.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.volume-range {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.volume-range:hover {
    height: 8px;
}

.volume-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--yellow);
    cursor: pointer;
    transition: all 0.3s var(--ease);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.volume-range::-webkit-slider-thumb:hover {
    background: #ffa500;
    transform: scale(1.2);
}

.volume-range::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--yellow);
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s var(--ease);
}

.volume-range::-moz-range-thumb:hover {
    background: #ffa500;
    transform: scale(1.2);
}

/* Action Buttons */
.action-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    padding: 0.6rem;
    border-radius: 6px;
    position: relative;
}

.action-btn:hover {
    color: var(--yellow);
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.action-btn.active {
    color: var(--yellow);
}

.action-btn.active#repeatBtn {
    color: #27ae60;
}

.action-btn.active#shuffleBtn {
    color: #9b59b6;
}

.action-btn.active#favoritePlayerBtn {
    color: #e74c3c;
}

/* Tooltips */
.action-btn::after,
.control-btn::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s var(--ease);
    z-index: 1002;
}

.action-btn:hover::after,
.control-btn:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s var(--ease);
}

.modal-content {
    background: rgba(30, 30, 30, 0.95);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    color: var(--white);
    margin: 0;
    font-family: 'Druk Wide', sans-serif;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--yellow);
}

.modal-body {
    padding: 1.5rem;
}

/* Стили для шеринга */
.share-link {
    margin-bottom: 1.5rem;
}

.share-link label {
    display: block;
    color: var(--white);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.link-container {
    display: flex;
    gap: 0.5rem;
}

#shareUrl {
    flex: 1;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--white);
    font-size: 0.9rem;
}

.copy-btn {
    background: var(--yellow);
    border: none;
    color: var(--black);
    padding: 0.8rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    font-weight: 600;
}

.copy-btn:hover {
    background: #ffa500;
}

.copy-btn.copied {
    background: #27ae60;
    color: white;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.8rem;
}

.social-share {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.social-share[data-platform="vk"] {
    background: #4a76a8;
}

.social-share[data-platform="telegram"] {
    background: #0088cc;
}

.social-share[data-platform="whatsapp"] {
    background: #25d366;
}

.social-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Notifications Styles */
.notifications-wrapper {
    position: relative;
}

.notification-btn {
    position: relative;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s var(--ease);
}

.notification-btn:hover {
    color: var(--yellow);
    background: rgba(255, 255, 255, 0.05);
}

.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.notifications-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s var(--ease);
    z-index: 1001;
}

.notifications-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 180, 0, 0.05);
}

.notifications-header h4 {
    color: var(--white);
    margin: 0;
    font-family: 'Druk Wide', sans-serif;
    font-size: 1rem;
}

.mark-all-read {
    background: none;
    border: none;
    color: var(--yellow);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    transition: all 0.3s var(--ease);
}

.mark-all-read:hover {
    background: rgba(255, 180, 0, 0.1);
}

.notifications-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s var(--ease);
    cursor: pointer;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.notification-item.unread {
    background: rgba(255, 180, 0, 0.05);
}

.notification-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon.success {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.notification-icon.error {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.notification-icon.info {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.notification-content {
    flex: 1;
}

.notification-title {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.notification-message {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.3rem;
}

.notification-time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}

.notification-item.loading {
    justify-content: center;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.notifications-empty {
    padding: 2rem 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.notifications-empty i {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.notifications-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.notifications-footer a {
    color: var(--yellow);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s var(--ease);
}

.notifications-footer a:hover {
    color: #ffa500;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid var(--yellow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Notifications */
.music-notification {
    position: fixed;
    top: 100px;
    right: 30px;
    background: rgba(255, 180, 0, 0.9);
    color: var(--black);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s var(--ease);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.music-notification.show {
    transform: translateX(0);
}

.music-notification.error {
    background: rgba(231, 76, 60, 0.9);
    color: white;
}

.music-notification.success {
    background: rgba(46, 204, 113, 0.9);
    color: white;
}

/* Анимация пульсации для счетчика */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Admin Styles */
.admin-tracks-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-track-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s var(--ease);
}

.admin-track-card:hover {
    border-color: var(--yellow);
    transform: translateY(-2px);
}

.track-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.track-preview i {
    font-size: 2rem;
    color: var(--yellow);
    opacity: 0.7;
}

.track-audio {
    flex: 1;
    max-width: 300px;
}

.track-audio::-webkit-media-controls-panel {
    background: rgba(255, 255, 255, 0.05);
}

.track-details {
    flex: 2;
}

.track-details h4 {
    color: var(--white);
    font-family: 'Druk Wide', sans-serif;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.track-details .artist {
    color: var(--yellow);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.track-details .uploader,
.track-details .date,
.track-details .stats {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.track-actions {
    display: flex;
    gap: 0.8rem;
    flex-shrink: 0;
}

.action-form {
    display: flex;
    gap: 0.8rem;
}

.btn-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    text-decoration: none;
    min-width: 120px;
    justify-content: center;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-action:active {
    transform: translateY(0);
}

.btn-approve {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.btn-approve:hover {
    background: linear-gradient(135deg, #219653, #27ae60);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.4);
}

.btn-reject {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.btn-reject:hover {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.btn-delete {
    background: linear-gradient(135deg, #7f8c8d, #95a5a6);
}

.btn-delete:hover {
    background: linear-gradient(135deg, #636e72, #7f8c8d);
    box-shadow: 0 5px 15px rgba(127, 140, 141, 0.4);
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .music-section {
        padding-bottom: 200px;
    }
    
    .music-player.active ~ .music-section {
        padding-bottom: 300px;
    }

    /* Header improvements */
    .nav-links {
        gap: 1rem;
    }
    
    .notification-btn {
        padding: 0.4rem;
    }
    
    .notifications-dropdown {
        width: 300px;
        right: -50px;
    }
    
    /* Music page improvements */
    .music-search {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .search-container {
        min-width: auto;
    }
    
    .filter-container {
        width: 100%;
    }
    
    .music-tabs {
        flex-direction: row;
        overflow-x: auto;
        padding: 0.5rem;
    }
    
    .music-tab {
        white-space: nowrap;
        flex: none;
        padding: 1rem;
    }
    
    .tab-content {
        padding: 1rem;
    }
    
    .music-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .track-image {
        height: 120px;
    }
    
    .track-info {
        padding: 1rem;
    }
    
    .track-title {
        font-size: 0.9rem;
    }
    
    .track-artist {
        font-size: 0.8rem;
    }
    
    .track-actions {
        gap: 0.3rem;
    }
    
    .action-btn {
        padding: 0.3rem;
        font-size: 0.8rem;
    }
    
    /* Player mobile optimization */
    .music-player {
        padding: 0.5rem 0;
    }
    
    .player-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .player-left {
        order: 1;
        width: 100%;
        justify-content: space-between;
        gap: 1rem;
        min-width: auto;
    }
    
    .track-info {
        min-width: auto;
        flex: 1;
    }
    
    .track-details .track-title,
    .track-details .track-artist {
        max-width: 150px;
    }
    
    .volume-section {
        flex-shrink: 0;
    }
    
    .player-controls {
        order: 2;
        width: 100%;
        justify-content: center;
        min-width: auto;
        gap: 0.5rem;
    }
    
    .player-right {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 1rem;
    }
    
    .progress-container {
        order: 4;
        padding: 0.8rem 1rem;
    }
    
    .volume-slider {
        bottom: 60px;
        left: 50%;
        transform: translateX(-50%) translateY(10px) scale(0.9);
    }
    
    .volume-slider.active {
        transform: translateX(-50%) translateY(0) scale(1);
    }
    
    /* Larger touch targets for mobile */
    .control-btn {
        width: 50px;
        height: 50px;
        min-height: 44px;
    }
    
    .control-btn#playBtn {
        width: 60px;
        height: 60px;
    }
    
    .action-btn {
        padding: 0.8rem;
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Hide tooltips on mobile */
    .action-btn::after,
    .control-btn::after {
        display: none;
    }
    
    /* Upload form mobile */
    .upload-card {
        padding: 1.5rem 1rem;
    }
    
    .upload-form {
        margin: 0 auto 1.5rem;
    }
    
    /* Notifications mobile */
    .notifications-dropdown {
        width: 280px;
        right: -80px;
    }
    
    /* Modal mobile */
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .share-buttons {
        grid-template-columns: 1fr;
    }
    
    /* Admin mobile */
    .admin-track-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .track-preview {
        width: 100%;
    }
    
    .track-audio {
        max-width: none;
    }
    
    .track-actions {
        width: 100%;
        justify-content: center;
    }
    
    .action-form {
        width: 100%;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .track-details .track-title,
    .track-details .track-artist {
        max-width: 120px;
    }
    
    .player-controls {
        gap: 0.3rem;
    }
    
    .control-btn {
        width: 44px;
        height: 44px;
    }
    
    .control-btn#playBtn {
        width: 54px;
        height: 54px;
    }
    
    .progress-container {
        padding: 0.6rem 1rem;
    }
    
    .notifications-dropdown {
        width: 250px;
        right: -100px;
    }
    
    /* Hide some elements on very small screens */
    .track-stats .plays {
        display: none;
    }
    
    .music-section {
        padding-bottom: 320px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .track-card:hover {
        transform: none;
    }
    
    .control-btn:hover, .play-btn:hover, .favorite-btn:hover {
        transform: none;
    }
    
    /* Larger touch targets */
    .music-tab {
        padding: 1.2rem 1rem;
    }
    
    .favorite-btn {
        padding: 0.8rem;
    }
    
    /* Remove hover effects */
    .track-card::before {
        display: none;
    }
}

/* Prevent zoom on input focus iOS */
@media (max-width: 768px) {
    input, select, textarea {
        font-size: 16px;
    }
}

/* Landscape orientation optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .music-section {
        padding-bottom: 200px;
    }
    
    .music-player {
        height: 80px;
    }
    
    .player-container {
        flex-direction: row;
        flex-wrap: wrap;
        height: 100%;
    }
    
    .player-left {
        flex: 1;
        order: 1;
        min-width: 150px;
    }
    
    .player-controls {
        flex: 2;
        order: 2;
    }
    
    .player-right {
        flex: 1;
        order: 3;
    }
    
    .progress-container {
        flex: 100%;
        order: 4;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}