@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --primary-color: #ffffff;
    --text-color: #ffffff;
    --bg-dark: #1a1a1a;
    --bg-darker: #242424;
    --glass-bg: rgba(25, 25, 25, 0.65);
    --glass-border: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    color: var(--text-color);
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}


.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
}


.custom-scroll {
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}

.custom-scroll::-webkit-scrollbar {
    width: 0;
    display: none; 
}


#youtube-background {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}


.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    height: 100vh;
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


.logo-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    pointer-events: none;
}

#serverLogo {
    width: 200px;
    height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}


.social-media-buttons {
    position: fixed;
    top: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    z-index: 1000;
    background: rgba(20, 20, 20, 0.6);
    border-radius: 50px;
    padding: 0.6rem 1rem;
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
}

.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
    position: relative;
    background: transparent;
    border: none;
    text-decoration: none;
}

.social-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.social-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: brightness(1);
}

.social-label {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(20, 20, 20, 0.8);
    color: white;
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.social-button:hover .social-label {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


.accordion-menu {
    position: fixed;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    width: 280px;
    max-height: 80vh;
    overflow: hidden;
    border-radius: 4px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.accordion-section {
    background: rgba(15, 15, 15, 0.75);
    backdrop-filter: blur(8px);
    border-radius: 3px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.accordion-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.header-icon {
    font-size: 0.9rem;
    opacity: 0.7;
    color: #fff;
}

.accordion-header h2 {
    flex: 1;
    font-size: 0.8rem;
    font-weight: 500;
    color: #fff;
    margin: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.85;
}

.toggle-icon {
    font-size: 0.7rem;
    transition: transform 0.3s;
    opacity: 0.6;
    color: #fff;
}

.accordion-section.active .toggle-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.accordion-section.active .accordion-content {
    max-height: 300px;
    opacity: 1;
}

.accordion-section.active {
    background: rgba(15, 15, 15, 0.85);
}

.accordion-section:hover {
    background: rgba(22, 22, 22, 0.85);
}

.staff-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.5rem;
}

.staff-card {
    background: rgba(10, 10, 10, 0.7);
    border-radius: 3px;
    padding: 0.7rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.staff-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
}

.staff-name {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.staff-role {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    text-transform: uppercase;
    background: rgba(40, 40, 40, 0.8);
    color: rgba(255, 255, 255, 0.8);
}

.role-owner, .role-admin, .role-developer, .role-staff {
    background: rgba(40, 40, 40, 0.8);
    color: rgba(255, 255, 255, 0.8);
}

.updates-container {
    padding: 0.8rem;
    overflow-y: auto;
    max-height: 250px;
}

.update-item {
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.update-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.update-title {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.update-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.65rem;
    margin-bottom: 0.4rem;
}

.update-content {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    line-height: 1.4;
}

.rules-container {
    max-height: 250px;
    overflow-y: auto;
    padding: 0.8rem;
}

.rules-container ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rules-container li {
    margin-bottom: 0.7rem;
    padding-left: 15px;
    position: relative;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    line-height: 1.4;
}

.rules-container li::before {
    content: "•";
    color: rgba(255, 255, 255, 0.5);
    position: absolute;
    left: 0;
}

.server-info {
    padding: 0.8rem;
    overflow-y: auto;
    max-height: 250px;
}

.info-item {
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.info-title {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.info-content {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    line-height: 1.4;
}

.loading {
  position: fixed;
  bottom: 0.5vh;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 900;
  gap: 0.6vh;
}

#progress_text {
  color: rgb(245, 245, 247);
  font-size: 1.6vh;
  font-weight: 100;
  letter-spacing: 0.1vh;
  text-shadow: 0 0 0.2vh rgba(245, 245, 247, 0.8);
}

.progress-container {
  position: relative;
  width: 100vw;
  height: 0.9vh;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 1vh;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(5px) saturate(140%);
  -webkit-backdrop-filter: blur(5px) saturate(140%);
}

#progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(226, 226, 226, 0.9), rgba(199, 199, 199, 0.9));
  border-radius: 1vh;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6), 0 0 18px rgba(255, 255, 255, 0.445);
  filter: saturate(130%);
  transition: width 0.2s ease;
}

.text {
  position: absolute;
  text-transform: uppercase;
  top: 42vh;
  left: 2vw;
  color: rgb(245, 245, 247);
  font-size: 8.5vh;
  font-weight: 800;
  line-height: 8vh;
}

.button {
  margin: 0;
  height: auto;
  background: transparent;
  padding: 0;
  border: none;
}

.button {
  font-size: 8vh;
  font-weight: 800;
  letter-spacing: 0.1vh;
  text-decoration: none;
  position: relative;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 0.1vh rgba(255,255,255,0.7);
  font-style: italic;
}

#hover-text {
  position: absolute;
  box-sizing: border-box;
  content: attr(data-text);
  color: rgb(255, 255, 255);
  width: 0%;
  inset: 0;
  border-right: 0.5vh solid rgb(255, 255, 255);
  overflow: hidden;
  transition: 0.5s;
  -webkit-text-stroke: 0.1vh rgb(255, 255, 255);
}

.button:hover #hover-text {
  width: 100%;
  filter: drop-shadow(0 0 0.5vh rgb(255, 255, 255));
  transform: translateX(-1vw);
}

.button:hover {
  -webkit-text-stroke: 0.1vh rgba(0,0,0,0);
}

#background-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('img/background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
}

.music-player-container {
    position: fixed;
    bottom: 2rem;
    left: 1rem;
    z-index: 1000;
    transition: all 0.3s ease;
}

.music-player {
    border-radius: 4px;
    width: 300px;
    background: rgba(15, 15, 15, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.music-player-content {
    padding: 1rem;
}

.music-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

#musicCover {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
}

.music-details {
    flex: 1;
}

#musicName {
    display: block;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.music-author {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

.music-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.control-btn {
    background: rgba(30, 30, 30, 0.6);
    color: #fff;
    border: none;
    padding: 0.3rem;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0.8;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    opacity: 1;
    background: rgba(50, 50, 50, 0.6);
    color: #ffffff;
}

.btn-icon {
    font-size: 1.2rem;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#volumeSlider {
    flex: 1;
    -webkit-appearance: none;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
}

#volumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

#volumeSlider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin: 0.5rem 0;
    cursor: pointer;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.social-icon {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

.ui-hidden .social-media-buttons,
.ui-hidden .accordion-menu,
.ui-hidden .loading-container {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.ui-hidden .music-player-container {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.toggle-playlist-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.toggle-playlist-btn:hover {
    color: white;
}

.toggle-playlist-btn i {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.playlist-items.expanded + .playlist-header .toggle-playlist-btn i,
.toggle-playlist-btn.expanded i {
    transform: rotate(180deg);
}

.toggle-playlist-btn:not(.expanded) i {
    transform: rotate(0deg);
}


.gallery-container {
    position: relative;
    margin: 0.5rem 0;
    overflow: hidden;
}

.gallery-slider {
    height: 180px;
    position: relative;
}

.gallery-item {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    height: 100%;
    width: 100%;
}

.gallery-item:hover {
    transform: scale(1.01);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gallery-item-caption {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-caption {
    opacity: 1;
}

.gallery-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 0.5rem;
    pointer-events: none;
}

.gallery-nav-btn {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    opacity: 0.7;
}

.gallery-nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    opacity: 1;
}

.gallery-nav-btn i {
    font-size: 0.9rem;
}

.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.lightbox-content {
    position: relative;
    max-width: 80%;
    max-height: 80%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 4px;
}

.close-lightbox {
    position: absolute;
    top: -40px;
    right: -40px;
    background: transparent;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

.gallery-lightbox.active {
    display: flex;
}

.lightbox-caption {
    color: white;
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
    max-width: 80%;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .music-player,
    .playlist-panel,
    .loading-container {
        width: 250px;
    }
    
    .accordion-menu {
        width: 280px;
    }
}


.add-song-form {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.add-song-form.active {
    opacity: 1;
    visibility: visible;
}

.form-content {
    background: rgba(25, 25, 25, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    width: 350px;
    max-width: 90%;
    position: relative;
}

.form-content h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    background: rgba(50, 50, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.3);
}

.form-group input.error {
    border-color: #ff4444;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}


.form-helper {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
    text-align: center;
}

.youtube-tip {
    margin-top: 10px;
    padding: 6px 10px;
    background: rgba(255, 0, 0, 0.1);
    border-radius: 4px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.form-buttons {
    display: flex;
    gap: 1rem;
}

.add-btn, .cancel-btn {
    flex: 1;
    padding: 0.7rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-btn {
    background: var(--primary-color);
    color: white;
}

.add-btn:hover {
    background: #66aeff;
}

.cancel-btn {
    background: rgba(50, 50, 50, 0.8);
    color: white;
}

.cancel-btn:hover {
    background: rgba(70, 70, 70, 0.8);
}


.success-message, .error-message {
    margin-top: 15px;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
    font-size: 0.9rem;
    animation: fadeInUp 0.3s ease;
}

.success-message {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.error-message {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.youtube-interaction-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    pointer-events: auto;
}

.youtube-unmute-message {
    background: rgba(25, 25, 25, 0.95);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 51, 51, 0.3);
    max-width: 450px;
    animation: pulse 2s infinite;
    pointer-events: auto;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 20px rgba(255, 0, 0, 0.4); }
    50% { transform: scale(1.03); box-shadow: 0 0 40px rgba(255, 0, 0, 0.6); }
    100% { transform: scale(1); box-shadow: 0 0 20px rgba(255, 0, 0, 0.4); }
}

.youtube-unmute-message p {
    margin-bottom: 20px;
    font-size: 18px;
    color: white;
    font-weight: 500;
}

.youtube-unmute-button {
    background: #ff0000;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
    pointer-events: auto;
}

.youtube-unmute-button:hover {
    background: #cc0000;
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.6);
}

.youtube-unmute-button i {
    margin-right: 10px;
    font-size: 20px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    box-sizing: border-box;
}

.lightbox-nav-btn {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.lightbox-nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    opacity: 1;
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ui-hidden .toggle-ui-btn {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(12, 12, 12, 0.8);
}

.playlist-header h3 {
    font-size: 0.9rem;
    color: white;
    font-weight: 500;
    margin: 0;
    opacity: 0.9;
}

.playlist-header-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-song-btn {
    background: rgba(40, 40, 40, 0.7);
    color: rgba(255, 255, 255, 0.8);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-song-btn:hover {
    background: rgba(60, 60, 60, 0.8);
    transform: scale(1.1);
}

.playlist-items {
    max-height: 0;
    overflow-y: auto;
    transition: max-height 0.3s ease;
    display: none;
}

.playlist-items.expanded {
    max-height: 180px;
    display: block;
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    background: rgba(10, 10, 10, 0.7);
    transition: background 0.2s;
    cursor: pointer;
    position: relative;
}

.playlist-item:hover {
    background: rgba(30, 30, 30, 0.7);
}

.playlist-item.active {
    background: rgba(40, 40, 40, 0.7);
}

.playlist-item-img {
    width: 30px;
    height: 30px;
    border-radius: 3px;
    object-fit: cover;
}

.playlist-item-name {
    flex: 1;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.delete-song-btn {
    display: none;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 4px;
}

.playlist-item:hover .delete-song-btn {
    display: block;
}

.delete-song-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

.toggle-playlist-btn .fa-chevron-up {
    transform: rotate(0) !important;
}

.toggle-playlist-btn .fa-chevron-down {
    transform: rotate(0) !important;
}