:root {
    --primary: #1DB954;
    --primary-light: #1ed760;
    --primary-dark: #1aa34a;
    --dark: #191414;
    --light: #FFFFFF;
    --gray: #121212;
    --light-gray: #282828;
    --transition-speed: 0.3s;
    --sidebar-width-desktop: 300px;
    --sidebar-width-mobile: 75vw; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    animation: fadeIn 0.5s ease-in-out;
    transition: transform 0.3s ease-out, filter 0.3s ease-out;
    width: 100%;
    position: relative;
    z-index: 1;
}

.parallax-wrapper {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.parallax-shape {
    position: absolute;
    width: 320px;
    height: 320px;
    filter: blur(60px);
    opacity: 0.35;
    background-color: rgba(29, 185, 84, 0.35);
    border-radius: 40%;
    transition: opacity 0.3s ease, transform 0.4s ease;
}

.shape-one {
    top: -80px;
    left: -120px;
    transform: rotate(-6deg);
}

.shape-two {
    right: -140px;
    top: 120px;
    width: 380px;
    height: 380px;
    opacity: 0.25;
    background-color: rgba(255, 255, 255, 0.18);
    transform: rotate(8deg);
}

.shape-three {
    bottom: -100px;
    left: 10%;
    width: 420px;
    height: 420px;
    opacity: 0.28;
    transform: rotate(14deg);
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.welcome-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.welcome-panel.show {
    opacity: 1;
    transform: translateY(0);
}

.welcome-panel.hidden {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

.welcome-content {
    background-color: var(--gray);
    border-radius: 12px;
    padding: 30px;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

.welcome-panel.show .welcome-content {
    opacity: 1;
    transform: scale(1);
}

.welcome-logo {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(29, 185, 84, 0.5);
}

.welcome-subtitle {
    font-size: 18px;
    color: #b3b3b3;
    margin-bottom: 25px;
}

.welcome-about {
    text-align: left;
    margin: 20px 0;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.welcome-about p {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #e0e0e0;
}

.welcome-thanks {
    text-align: left;
    margin: 25px 0;
}

.thanks-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 10px;
    border-bottom: 1px solid var(--primary-light);
    padding-bottom: 5px;
}

.thanks-list {
    list-style-type: none;
    padding-left: 0;
}

.thanks-list li {
    margin-bottom: 8px;
    color: #b3b3b3;
    padding-left: 20px;
    position: relative;
}

.thanks-list li:before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.welcome-btn {
    background-color: var(--primary);
    color: var(--light);
    border: none;
    border-radius: 30px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.welcome-btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.welcome-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    margin-bottom: 40px;
    position: relative;
    backdrop-filter: blur(6px);
}

.header:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.08);
}

.logo {
    font-size: 42px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 20px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    position: relative;
    text-shadow: 0 0 15px rgba(29, 185, 84, 0.3);
}

.logo:hover {
    text-shadow: 0 0 20px rgba(29, 185, 84, 0.7);
}

.logo:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.logo:hover:after {
    width: 100%;
}

.site-description {
    color: #b3b3b3;
    font-size: 18px;
    text-align: center;
    max-width: 600px;
    margin-bottom: 30px;
    line-height: 1.5;
}

.search-container {
    width: 100%;
    max-width: 700px;
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    position: relative;
    background: rgba(24, 24, 24, 0.6);
    padding: 8px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.search-input {
    flex: 1;
    padding: 16px 22px;
    border-radius: 30px;
    border: none;
    background-color: var(--light-gray);
    color: var(--light);
    font-size: 18px;
    transition: all 0.3s;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 3px 12px rgba(0, 0, 0, 0.2);
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-light);
    background-color: rgba(40, 40, 40, 0.9);
}

.search-btn {
    padding: 16px 30px;
    border-radius: 30px;
    border: none;
    background-color: var(--primary);
    color: var(--light);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    font-size: 16px;
}

.search-btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.search-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.search-btn i {
    margin-right: 8px;
}

.hamburger-menu {
    position: absolute;
    right: 20px;
    top: 30px;
    background: none;
    border: none;
    color: var(--light);
    font-size: 28px;
    cursor: pointer;
    z-index: 100;
    transition: color 0.3s ease;
}

.hamburger-menu:hover {
    color: var(--primary);
}

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--sidebar-width-desktop);
    height: 100%;
    background-color: var(--gray);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform var(--transition-speed) ease-out;
    padding: 20px;
    display: flex;
    flex-direction: column;
    width: min-content;
    min-width: 200px;
    max-width: 300px;
}

.sidebar.open {
    transform: translateX(0);
}

.close-sidebar-btn {
    background: none;
    border: none;
    color: var(--light);
    font-size: 24px;
    cursor: pointer;
    align-self: flex-end;
    margin-bottom: 20px;
    transition: color 0.3s;
}

.close-sidebar-btn:hover {
    color: var(--primary);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.sidebar-menu li {
    margin-bottom: 15px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    color: var(--light);
    text-decoration: none;
    font-size: 18px;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
}

.sidebar-menu a:hover {
    background-color: var(--light-gray);
    color: var(--primary);
}

.sidebar-menu a i {
    font-size: 20px;
    width: 25px;
    text-align: center;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-speed) ease;
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
}


body.sidebar-open .container {
    transform: translateX(calc(-1 * var(--sidebar-width-mobile) / 2));
    filter: blur(3px);
    pointer-events: none;
    overflow-x: hidden;
    width: 100vw;
}

.history-section {
    margin-bottom: 40px;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    font-size: 20px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 10px;
    background-color: var(--light-gray);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.history-item:hover {
    background-color: rgba(40, 40, 40, 0.9);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.history-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.history-info {
    flex: 1;
    min-width: 0;
}

.history-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 6px;
}

.history-artist {
    font-size: 14px;
    color: #b3b3b3;
}

.history-duration {
    color: #b3b3b3;
    font-size: 12px;
    margin-left: 10px;
    flex-shrink: 0;
}

.no-history {
    text-align: center;
    padding: 30px;
    color: #b3b3b3;
    background-color: rgba(40, 40, 40, 0.5);
    border-radius: 8px;
    border: 1px dashed var(--light-gray);
}

.results-section {
    display: none;
    margin-bottom: 40px;
    animation: fadeInUp 0.5s ease;
}

.results-section.active {
    display: block;
}

@keyframes fadeInUp {
    0% { transform: translateY(30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.results-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
    padding-bottom: 80px;
}

.song-card {
    background-color: var(--light-gray);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    position: relative;
}

.song-card-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: opacity 0.3s;
    z-index: 2;
    gap: 15px;
}

.song-card:hover .song-card-overlay {
    opacity: 1;
}

.play-overlay-btn, .favorite-btn {
    background: var(--primary);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-overlay-btn:hover, .favorite-btn:hover {
    transform: scale(1.1);
    background: var(--primary-light);
}

.favorite-btn.active {
    background: #e74c3c;
}

.favorite-btn.active:hover {
    background: #c0392b;
}

.song-card:hover {
    transform: translateY(-7px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.song-card:active {
    transform: translateY(-3px) scale(1.01);
}

.song-thumbnail {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: all 0.3s;
}

.song-card:hover .song-thumbnail {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.song-card:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.song-card:hover:after {
    opacity: 1;
}

.song-info {
    padding: 12px;
    position: relative;
    z-index: 1;
}

.song-title {
    font-weight: bold;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scrolling-text {
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}

.scrolling-text-content {
    display: inline-block;
    animation: scroll-text 12s linear infinite;
    padding-right: 50px;
}

@keyframes scroll-text {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.song-artist {
    color: #b3b3b3;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-duration {
    color: #b3b3b3;
    font-size: 12px;
}

.song-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.song-views {
    color: #888;
    font-size: 11px;
}

.contributors-section {
    margin-bottom: 40px;
    animation: fadeInUp 0.5s ease;
}

.contributors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 20px;
    padding-bottom: 80px;
}

.contributor-card {
    background-color: var(--light-gray);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.contributor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background-color: rgba(40, 40, 40, 0.95);
}

.contributor-photo {
    width: 100px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid var(--primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.contributor-name {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 8px;
}

.contributor-description {
    font-size: 14px;
    color: #b3b3b3;
    line-height: 1.5;
}

.player-minimized {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--gray);
    padding: 12px;
    display: flex;
    align-items: center;
    z-index: 90;
    cursor: pointer;
    border-top: 1px solid var(--light-gray);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    animation: slideUp 0.4s ease;
}

.player-minimized.hidden {
    display: none;
}

.player-minimized:hover {
    background-color: rgba(25, 20, 20, 0.95);
}

.now-playing-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.now-thumbnail-mini {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.player-minimized:hover .now-thumbnail-mini {
    transform: scale(1.05);
}

.mini-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.control-btn {
    background: none;
    border: none;
    color: var(--light);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.control-btn:hover {
    color: var(--primary);
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.control-btn:active {
    transform: scale(0.95);
}

.control-btn i {
    font-size: 18px;
}

.player-full {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0e0e0e;
    z-index: 100;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 30px 20px 80px;
    overflow-y: auto;
    animation: fadeIn 0.4s ease;
}

.player-full.active {
    display: flex;
}

.player-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.back-btn {
    background: none;
    border: none;
    color: var(--light);
    font-size: 16px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.back-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary);
}

.player-title {
    font-size: 20px;
    color: var(--primary);
    font-weight: bold;
}

.player-content {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.now-thumbnail-large {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.5s;
    animation: pulse 2s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); }
    100% { transform: scale(1.02); box-shadow: 0 15px 35px rgba(29, 185, 84, 0.2); }
}

.now-info-large {
    width: 100%;
    margin-bottom: 25px;
}

.now-title-large {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 8px;
}

.now-artist-large {
    font-size: 16px;
    color: #b3b3b3;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 200px;
}

.volume-btn {
    background: none;
    border: none;
    color: var(--light);
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.volume-btn:hover {
    color: var(--primary);
    background-color: rgba(255, 255, 255, 0.1);
}

.volume-slider {
    flex: 1;
    height: 4px;
    background: var(--light-gray);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.progress-container-large {
    width: 100%;
    margin-bottom: 20px;
}

.progress-bar-large {
    height: 6px;
    background-color: var(--light-gray);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 10px;
    position: relative;
}

.progress-bar-large:hover:after {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: transparent;
    cursor: pointer;
}

.progress-large {
    height: 100%;
    background-color: var(--primary);
    width: 0%;
    position: relative;
    transition: width 0.1s linear;
}

.progress-large:after {
    content: '';
    position: absolute;
    right: -6px;
    top: -3px;
    width: 12px;
    height: 12px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    transform: scale(0);
    transition: transform 0.2s;
}

.progress-bar-large:hover .progress-large:after {
    transform: scale(1);
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #b3b3b3;
}

.controls-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
    width: 100%;
}

.control-btn-large {
    background: none;
    border: none;
    color: var(--light);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.control-btn-large:hover {
    color: var(--primary);
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.control-btn-large:active {
    transform: scale(0.95);
}

.play-btn-large {
    font-size: 24px;
    color: var(--light);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.play-btn-large:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    background-color: var(--primary-light);
}

.play-btn-large:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.download-btn {
    background-color: var(--primary);
    color: var(--light);
    border: none;
    border-radius: 30px;
    padding: 12px 25px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.download-btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.download-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.next-up-container {
    width: 100%;
    max-width: 500px;
    margin-top: 30px;
}

.next-up-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.next-up-list {
    width: 100%;
}

.queue-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    background-color: var(--light-gray);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.queue-item:hover {
    background-color: rgba(40, 40, 40, 0.9);
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.queue-item:active {
    transform: translateX(2px);
}

.queue-thumbnail {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 12px;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.queue-info {
    flex: 1;
    min-width: 0;
}

.queue-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 3px;
}

.queue-artist {
    font-size: 12px;
    color: #b3b3b3;
}

.queue-duration {
    color: #b3b3b3;
    font-size: 12px;
    margin-left: 10px;
    flex-shrink: 0;
}

.loading {
    display: none;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
}

.loader {
    width: 40px;
    height: 40px;
    border: 4px solid var(--light-gray);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    margin-left: 15px;
    color: #b3b3b3;
    font-size: 16px;
}

.no-results {
    display: none;
    text-align: center;
    padding: 30px;
    color: #b3b3b3;
    background-color: rgba(40, 40, 40, 0.5);
    border-radius: 8px;
    margin-top: 20px;
    border: 1px dashed var(--light-gray);
    animation: fadeIn 0.5s ease;
}

.no-results h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--light);
}

.no-results p {
    font-size: 14px;
}

.recommended-section {
    margin-bottom: 40px;
    animation: fadeInUp 0.5s ease; 
    display: block;
}

.recommended-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
    padding-bottom: 80px;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--gray);
    color: var(--light);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
    border-left: 4px solid var(--primary);
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left-color: #27ae60;
}

.notification-error {
    border-left-color: #e74c3c;
}

.notification-info {
    border-left-color: var(--primary);
}

.notification i {
    font-size: 16px;
}

.favorites-section {
    margin-bottom: 40px;
    animation: fadeInUp 0.5s ease;
}

.favorites-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
    padding-bottom: 80px;
}

@media (max-width: 1024px) {
    .welcome-content {
        padding: 24px;
    }

    .search-container {
        max-width: 100%;
    }

    .results-container,
    .recommended-container,
    .contributors-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 16px;
        overflow-x: hidden;
    }
    
    .welcome-content {
        padding: 20px;
    }
    
    .welcome-logo {
        font-size: 26px;
    }
    
    .welcome-subtitle {
        font-size: 16px;
    }
    
    .header {
        padding: 20px 0;
        margin-bottom: 30px;
        width: 100%; 
    }

    .hamburger-menu {
        top: 25px;
        right: 15px;
        font-size: 24px;
    }
    
    .logo {
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    .site-description {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .search-container {
        margin-bottom: 10px;
        padding: 12px;
        flex-direction: column;
        gap: 10px;
        border-radius: 20px;
    }
    
    .search-input {
        font-size: 16px;
        padding: 14px 18px;
    }
    
    .search-btn {
        padding: 14px 22px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }
    
    .results-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
        padding-bottom: 70px;
    }
    
    .song-info {
        padding: 10px;
    }
    
    .song-title {
        font-size: 14px;
    }
    
    .song-artist {
        font-size: 12px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .history-item {
        padding: 12px;
    }
    
    .history-thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .history-title {
        font-size: 15px;
    }
    
    .now-thumbnail-large {
        max-width: 250px;
    }
    
    .now-title-large {
        font-size: 18px;
    }
    
    .now-artist-large {
        font-size: 14px;
    }
    
    .controls-large {
        gap: 20px;
    }
    
    .play-btn-large {
        font-size: 20px;
        width: 56px;
        height: 56px;
    }
    
    .control-btn-large {
        font-size: 16px;
        width: 40px;
        height: 40px;
    }
    
    .next-up-title {
        font-size: 16px;
    }
    
    .queue-item {
        padding: 8px;
    }
    
    .queue-thumbnail {
        width: 40px;
        height: 40px;
    }
    
    .queue-title {
        font-size: 13px;
    }
    
    .queue-artist {
        font-size: 11px;
    }
    
    .queue-duration {
        font-size: 11px;
    }

    .contributors-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 20px;
    }

    .contributor-photo {
        width: 80px;
        height: 80px;
    }

    .contributor-name {
        font-size: 16px;
    }

    .contributor-description {
        font-size: 12px;
    }

    .sidebar {
        width: var(--sidebar-width-mobile); 
        min-width: unset; 
        max-width: unset; 
    }

    body.sidebar-open .container {
        transform: translateX(calc(-1 * var(--sidebar-width-mobile)));
        filter: blur(3px);
        pointer-events: none;
        overflow-x: hidden;
        width: 100vw;
    }

    .recommended-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .favorites-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
    }

    .notification.show {
        transform: translateY(0);
    }

    .volume-container {
        max-width: 150px;
        gap: 10px;
    }

    .volume-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .play-overlay-btn, .favorite-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

}
@media (max-width: 480px) {
    .results-container {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 10px;
    }
    
    .now-thumbnail-large {
        max-width: 200px;
    }
    
    .controls-large {
        gap: 15px;
    }
    
    .play-btn-large {
        font-size: 18px;
        width: 50px;
        height: 50px;
    }
    
    .control-btn-large {
        font-size: 14px;
        width: 36px;
        height: 36px;
    }
    
    .welcome-content {
        padding: 15px;
    }
    
    .welcome-logo {
        font-size: 22px;
    }
    
    .welcome-subtitle {
        font-size: 14px;
    }
    
    .welcome-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .logo {
        font-size: 28px;
    }
    
    .site-description {
        font-size: 14px;
    }
    
    .search-input {
        font-size: 14px;
        padding: 12px 16px;
    }
    
    .search-btn {
        padding: 12px 18px;
        font-size: 13px;
    }

    .hamburger-menu {
        font-size: 20px;
        top: 20px;
        right: 10px;
    }

    .sidebar {
        width: var(--sidebar-width-mobile);
        min-width: unset;
        max-width: unset;
    }

    .close-sidebar-btn {
        font-size: 20px;
    }

    .sidebar-menu a {
        font-size: 16px;
        padding: 10px 12px;
    }

    .sidebar-menu a i {
        font-size: 18px;
    }

    .contributors-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .contributor-card {
        max-width: 220px;
        margin: 0 auto;
        padding: 20px;
    }

  .recommended-container {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
  }

  .favorites-container {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
  }

  .volume-container {
    max-width: 120px;
    gap: 8px;
  }

  .play-overlay-btn, .favorite-btn {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
}

body.page-contributors .header .search-container,
body.page-contributors .header .site-description {
  display: none;
}

.site-footer {
  background-color: #0d0d0d;
  color: #d1f1d1;
  text-align: center;
  padding: 2rem 1rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.95rem;
  border-top: 1px solid #1f1f1f;
  animation: fadeInUp 1s ease-in-out;
}

.site-footer a {
  color: #7bed9f;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.site-footer a:hover,
.site-footer a:focus {
  color: #2ed573;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  opacity: 0;
  animation: fadeIn 1s ease-in-out forwards;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}