* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
    /*background-image: url('images/background.jpg');*/
    background-position: center;
    background-attachment: fixed;
    scroll-behavior: smooth;
}

.container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background-color: #1f1f1f;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    text-align: center;
    opacity: 0; /* Start hidden */
    animation: fadeIn 1s ease-in-out forwards; /* Automatic fade-in */
    z-index: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

h2 {
    color: #ffcc00;
    margin-bottom: 20px;
    transition: color 0.3s ease-in-out; /* Color transition */
}

input[type="file"],
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
button {
    padding: 10px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    margin: 5px auto;
    display: block;
    width: calc(100% - 20px);
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

input[type="file"],
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"] {
    background-color: #333;
    color: #e0e0e0;
}

button {
    background-color: #ffcc00;
    color: #000;
    cursor: pointer;
}

button:disabled {
    background-color: #888;
    cursor: not-allowed;
}

button:hover {
    background-color: #e6b800;
}

#progressBar,
#volumeControl {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    max-width: 400px;
    height: 4px;
    margin: 0 10px;
    border-radius: 2px;
    background-color: #404040; /* Dark gray background */
    transition: width 0.3s ease-in-out;
}

#progressBar::-webkit-slider-thumb,
#volumeControl::-webkit-slider-thumb,
#progressBar::-moz-range-thumb,
#volumeControl::-moz-range-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ffcc00;
    cursor: pointer;
    transition: background-color 0.3s;
}

#resultsList {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

#resultsList li,
.song-item {
    background-color: #222222;
    color: #e0e0e0;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    cursor: pointer;
    opacity: 0; /* Start hidden */
    animation: fadeIn 1s ease-in-out forwards; /* Automatic fade-in */
    transition: background-color 0.3s ease-in-out;
}

#resultsList li:hover,
.song-item:hover {
    background-color: #373737;
}

/* Playlist styles */
.recommended-playlists {
    margin: 40px 0;
  }
  
  .playlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
  }
  
  .playlist-card {
    background: #2a2a2a;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
  }
  
  .playlist-card:hover {
    transform: translateY(-5px);
  }
  
  .playlist-cover {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
  }
  
  .playlist-result {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: #333;
    margin-bottom: 5px;
  }
  
  .playlist-icon {
    width: 40px;
    height: 40px;
    border-radius: 5px;
  }
  
  .playlist-name {
    font-weight: bold;
  }
  
  .playlist-info {
    font-size: 0.8em;
    color: #888;
  }

/* Updated .rec-item for better responsiveness */
.rec-item {
    background-color: #333;
    color: #e0e0e0;
    padding: 20px;
    border-radius: 5px;
    margin: 10px 0;
    height: auto; /* Adjust for content-based height */
    width: 100%; /* Take full width in a list format */
    max-width: 300px; /* Optional: Set a max width for larger screens */
    text-align: center;
    cursor: pointer;
    opacity: 0; /* Start hidden */
    animation: fadeIn 1s ease-in-out forwards; /* Automatic fade-in */
    transition: background-color 0.3s ease-in-out;
}

.rec-item:hover {
    background-color: #444;
}

/* .mpl container updated for responsive behavior */
.mpl, .playlist-grid {
    display: flex;
    flex-direction: column; /* Default to column for a list-like layout */
    align-items: center;
    justify-content: center;
    background-color: #121212; /* Theme color */
    color: #ffffff; /* Theme color */
    text-align: center;
    padding: 20px; /* Optional: Add padding for spacing */
    gap: 10px; /* Spacing between items */
}

/* Media query for larger screens */
@media (min-width: 768px) {
    .mpl {
        flex-direction: row; /* Switch to row layout for larger screens */
        flex-wrap: wrap; /* Allow wrapping of items */
        justify-content: flex-start; /* Optional: Align items to the left */
    }

    .rec-item {
        margin: 10px; /* Add spacing for row layout */
        width: calc(100% / 3 - 20px); /* 3 items per row, adjust as needed */
    }
}

/* Optional: Animation keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


.player-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.input-container {
    margin-bottom: 20px;
}

.cover-container {
    margin-bottom: 20px;
    text-align: center;
}

#coverImage {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: width 0.3s ease-in-out, height 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.hidden {
    display: none;
}

/* Responsive design adjustments */
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }

    input[type="file"],
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="url"],
    button {
        font-size: 14px;
        padding: 8px;
    }

    #progressBar,
    #volumeControl {
        max-width: 100%;
    }
}

#loader {
    z-index: 999;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.75);
    padding: 20px;
    border-radius: 10px;
    z-index: 9999999999999999999999;
}

.loader-animation {
    z-index: 999;
    border: 5px solid #f3f3f3;
    border-radius: 50%;
    border-top: 5px solid #ffcc00;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.switch-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 20px 0;
}

.switch-label {
    margin-left: 10px;
    color: #e0e0e0;
    font-size: 17px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 3.7em;
    height: 1.8em;
}

.switch input {
    display: none;
}

input:checked {
    background-color: #3a4b39;
}

input:checked {
    background-color: #84da89;
    transform: translateX(1.9em);
}

/* Applies to the whole page */
::-webkit-scrollbar {
    width: 10px; /* Width of the scrollbar */
    transition: all 0.3s ease-in-out; /* Smooth transition for the entire scrollbar */
}

/* Track */
::-webkit-scrollbar-track {
    background-color: #121212; /* Background of the track */
    transition: all 0.3s ease-in-out; /* Smooth transition for the track */
}

/* Handle */
::-webkit-scrollbar-thumb {
    background-color: #444; /* Darker gray for the scrollbar thumb */
    transition: all 0.3s ease-in-out; /* Smooth transition for the thumb */
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background-color: #666; /* Lighter gray for hover effect */
    transition: all 0.3s ease-in-out; /* Smooth transition for the hover effect */
}

hr {
    border: none;
    background-color: #ffcc00; /* Updated to your theme color */
    margin: 20px 0;
    height: 4px; /* Slightly thinner for a more refined look */
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transitions */
}

hr:hover {
    background-color: #e6b800; /* Darker shade on hover for effect */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
}

:root {
    --arrow-bg: rgba(255, 255, 255, 0.3);
    --arrow-icon: url(https://upload.wikimedia.org/wikipedia/commons/9/9d/Caret_down_font_awesome_whitevariation.svg);
    --option-bg: white;
    --select-bg: rgba(255, 255, 255, 0.2);
  }
  * {
    box-sizing: border-box;
  }
  body {
    background: linear-gradient(35deg, #121212, #212121);
  }
  /* <select> styles */
  select {
    /* Reset */
    appearance: none;
    border: 0;
    outline: 0;
    font: inherit;
    /* Personalize */
    width: 20rem;
    padding: 1rem 4rem 1rem 1rem;
    background:
    var(--arrow-icon) no-repeat right 0.8em center / 1.4em, /* Keeps the arrow icon */
    linear-gradient(to left, #ffcc00, #ffcc00) no-repeat, /* Adds the #ffcc00 color */
    linear-gradient(to left, var(--arrow-bg) 3em, var(--select-bg) 3em); /* Existing gradient */
  
    color: rgb(0, 0, 0);
    border-radius: 0.25em;
    box-shadow: 0 0 1em 0 rgba(0, 0, 0, 0.2);
    cursor: pointer;
    /* Remove IE arrow */
    &::-ms-expand {
      display: none;
    }
    /* Remove focus outline */
    &:focus {
      outline: none;
    }
    /* <option> colors */
    option {
      color: inherit;
      background-color: #ffcc00;
    }
  }
  
 

@keyframes toastshow {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toasthide {
    0% {
        opacity: 1;
        transform: translateY(20px);
    }
    100% {
        opacity: 0;
        transform: translateY(0);
    }
}
/* BASIC SLIDER */

#progressBar,
#volumeControl {
  width: 100%; /* Full width */
  height: 6px; /* Slim track */
  background: #ddd; /* Light gray track */
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  border-radius: 3px;
  cursor: pointer;
}

/* Slider Thumb (Handle) */
#progressBar::-webkit-slider-thumb,
#volumeControl::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px; /* Handle size */
  height: 16px;
  background: #555; /* Dark gray handle */
  border-radius: 50%;
  cursor: pointer;
}

#progressBar::-moz-range-thumb,
#volumeControl::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #555; /* Dark gray handle */
  border-radius: 50%;
  cursor: pointer;
}
  /* From Uiverse.io by Nawsome */ 
.clear {
    clear: both;
  }
  
  .checkBox {
    display: block;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0px 0px 0px 2px #fff;
  }
  
  .checkBox div {
    width: 60px;
    height: 60px;
    background-color: #fff;
    top: -52px;
    left: -52px;
    position: absolute;
    transform: rotateZ(45deg);
    z-index: 100;
  }
  
  .checkBox input[type=checkbox]:checked + div {
    left: -10px;
    top: -10px;
  }
  
  .checkBox input[type=checkbox] {
    position: absolute;
    left: 50px;
    visibility: hidden;
  }
  
  .transition {
    transition: 300ms ease;
  }

  /* Updated CSS for Version 4 */
:root {
  --primary: #ffcc00;
  --secondary: #00ff88;
  --accent: #0095ff;
  --dark: #212121;
  --darker: #121212;
  --light: #f5f5f5;
  --primary: #ffcc00;
  --primary-dark: #cda400;
  --dark-bg: #121212;
  --surface: #181818;
  --surface-hover: #282828;
  --surface-light: #242424;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --text-tertiary: #7a7a7a;
  --spacing-base: 1rem;
  --border-radius: 8px;
  --border-radius-sm: 4px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  --transition: all 0.2s ease;
  --dark-bg: #212121;
  --surface: #181818;
  --surface-hover: #282828;
  --surface-light: #242424;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --text-tertiary: #7a7a7a;
  --spacing-base: 1rem;
  --border-radius: 8px;
  --border-radius-sm: 4px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  --transition: all 0.2s ease;
}

h1, h2, h3 {
  font-family: 'Goldman', sans-serif;
  letter-spacing: 1px;
}

#resultsList li {
  background: linear-gradient(90deg, rgba(40, 40, 40, 0.6), rgba(30, 30, 30, 0.4));
  padding: 1.2rem;
  border-left: 4px solid var(--primary);
}

.song-item, .rec-item {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
    padding: 1.5rem;
    margin: 1rem 0;
  }

  .link {
    color: #0095ff;
    cursor: pointer;
    text-decoration: none;
  }

  /* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
  outline: none;
}

/* Base styling for text, number, email, and password inputs */
input[type="text"], 
input[type="number"], 
input[type="url"],
input[type="email"], 
input[type="password"] {
    padding: 10px;
    border: 2px solid #2c2c2c;
    border-radius: 25px;
    background-color: #333;
    color: white;
    font-size: 18px;
    outline: none;
    transition: border-color 0.01s ease-in-out, box-shadow 1s ease
}

/* Focused input styles */
input[type="text"]:focus, 
input[type="number"]:focus, 
input[type="email"]:focus, 
input[type="url"],
input[type="password"]:focus {
    border-color: #ffcc00;
}

/* Placeholder styles */
input[type="text"]::placeholder, 
input[type="number"]::placeholder, 
input[type="url"],
input[type="email"]::placeholder, 
input[type="password"]::placeholder {
    color: #888;
    transition: color 0.3s ease;
}

input[type="text"]:focus::placeholder, 
input[type="number"]:focus::placeholder, 
input[type="email"]:focus::placeholder, 
input[type="url"],
input[type="password"]:focus::placeholder {
    color: #ffcc00;
}





/* BASIC SLIDER WITH CUSTOM COLORS */

#progressBar,
#volumeControl {
  width: 100%; /* Full width */
  height: 6px; /* Slim track */
  background: #212121; /* Secondary color for the track */
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  border-radius: 3px;
  cursor: pointer;
}

/* Slider Thumb (Handle) */
#progressBar::-webkit-slider-thumb,
#volumeControl::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px; /* Handle size */
  height: 16px;
  background: #ffcc00; /* Primary color for the handle */
  border-radius: 50%;
  cursor: pointer;
}

#progressBar::-moz-range-thumb,
#volumeControl::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #ffcc00; /* Primary color for the handle */
  border-radius: 50%;
  cursor: pointer;
}

/* Spotify-style playlist grid layout */
.results-section-header {
    margin: 25px 0 15px 0;
    color: #fff;
    font-family: 'Goldman', serif;
    font-size: 1.2rem;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .playlist-grid-container {
    margin-bottom: 25px;
  }
  
  .playlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
  }
  
  .playlist-box {
    background-color: rgba(40, 40, 40, 0.7);
    border-radius: 8px;
    overflow: hidden;
    transition: background-color 0.3s, transform 0.2s;
    cursor: pointer;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: 0.1s ease-in-out;
  }
  
  .playlist-box:hover {
    background-color: rgba(60, 60, 60, 0.9);
    transform: translateY(-5px);
    transition: 0.1s ease-in-out;
  }
  
  .playlist-image-container {
    position: relative;
    padding-bottom: 100%; /* Square aspect ratio */
    width: 100%;
    background-color: #333;
  }
  
  .playlist-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .playlist-play-button {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background-color: #ffcc00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: 0.1s ease-in-out;
  }
  
  .playlist-box:hover .playlist-play-button {
    opacity: 1;
    transform: translateY(0);
  }
  
  .playlist-play-button:hover {
    transform: scale(1.1);
    transition: 0.1s ease-in-out;
    background-color: #cda400;
  }
  
  .playlist-info-container {
    padding: 12px;
  }
  
  .playlist-name {
    font-weight: bold;
    color: white;
    font-size: 14px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Roboto Condensed', sans-serif;
  }
  
  .playlist-details {
    color: #aaa;
    font-size: 12px;
    font-family: 'Roboto Condensed', sans-serif;
  }
  
  /* Fade-in animation for search results including playlist boxes */
  .playlist-box {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  .playlist-box.fade-in {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Media query for smaller screens */
  @media (max-width: 600px) {
    .playlist-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 15px;
    }
  }

  /* Spotify-style playlist page */
.playlist-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    background-color: rgba(25, 25, 25, 0.8);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  }
  
  /* Spotify-style header */
  .spotify-playlist-header {
    display: flex;
    padding: 20px 0 30px 0;
    margin-bottom: 20px;
  }
  
  .playlist-cover-art {
    width: 200px;
    height: 200px;
    min-width: 200px;
    box-shadow: 0 4px 60px rgba(0, 0, 0, 0.5);
    margin-right: 24px;
  }
  
  .playlist-cover-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .playlist-header-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
  
  .playlist-type {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 1px;
    color: #fff;
    font-family: 'Roboto Condensed', sans-serif;
  }
  
  .playlist-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #fff;
    font-family: 'Goldman', serif;
    line-height: 1.1;
  }
  
  .playlist-meta {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 24px;
    font-family: 'Roboto Condensed', sans-serif;
  }
  
  .playlist-actions {
    display: flex;
    gap: 16px;
    margin-top: 8px;
  }
  
  .primary-button {
    background-color: #6666cc;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
  }
  
  .primary-button:hover {
    background-color: #7777dd;
    transform: scale(1.05);
  }
  
  .secondary-button {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
  }
  
  .secondary-button:hover {
    border-color: white;
    transform: scale(1.05);
  }
  
  /* Songs table styling */
  .songs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    color: #aaa;
  }
  
  .songs-table thead {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .songs-table th {
    text-align: left;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 400;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Roboto Condensed', sans-serif;
  }
  
  .song-number-header {
    width: 40px;
  }
  
  .song-action-header {
    width: 50px;
  }
  
  .songs-table tbody tr {
    border-radius: 4px;
    height: 56px;
    transition: background-color 0.2s ease;
  }
  
  .songs-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  .songs-table td {
    padding: 8px 16px;
  }
  
  .song-number {
    color: #aaa;
    text-align: center;
  }
  
  tr:hover .song-number {
    display: none;
  }
  
  .song-play-icon {
    display: none;
    color: white;
    text-align: center;
  }
  
  tr:hover .song-play-icon {
    display: block;
  }
  
  .song-title {
    color: white;
    font-weight: 500;
    font-family: 'Roboto Condensed', sans-serif;
  }
  
  .song-artist {
    color: #aaa;
    font-family: 'Roboto Condensed', sans-serif;
  }
  
  .song-action-button {
    background: transparent;
    border: none;
    color: #aaa;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, color 0.2s ease;
  }
  
  tr:hover .song-action-button {
    opacity: 1;
  }
  
  .song-action-button:hover {
    color: white;
  }
  
  .loading-row td {
    text-align: center;
    padding: 30px;
    color: #aaa;
    font-style: italic;
  }
  
  /* Media query for smaller screens */
  @media (max-width: 768px) {
    .spotify-playlist-header {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
    
    .playlist-cover-art {
      margin-right: 0;
    }
    
    .playlist-actions {
      justify-content: center;
    }
    
    .songs-table th:nth-child(3),
    .songs-table td:nth-child(3) {
      display: none; /* Hide artist column on mobile */
    }
    
    .playlist-title {
      font-size: 32px;
    }
  }
  
  @media (max-width: 480px) {
    .playlist-cover-art {
      width: 150px;
      height: 150px;
      min-width: 150px;
    }
    
    .playlist-actions {
      flex-direction: column;
      gap: 8px;
    }
    
    .song-title-header, .song-title {
      max-width: 200px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  }
  
  .playlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding: 20px;
}

.playlist-card {
    background: #2a2a2a;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: transform 0.2s;
}

.playlist-card:hover {
    transform: translateY(-5px);
}

.playlist-image {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.playlist-info {
    padding: 10px 0;
}

.playlist-name {
    font-weight: bold;
    margin: 10px 0;
    color: #fff;
}

.playlist-details {
    font-size: 0.9em;
    color: #888;
}



/* styles.css */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
}

.main-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 2rem;
}

.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.5rem;
}

.logo {
  height: 40px;
  width: 40px;
}

.header-actions {
  display: flex;
  gap: 1.5rem;
}

.icon-button {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  padding: 0.5rem;
  transition: color 0.2s ease;
}

.icon-button:hover {
  color: var(--text-primary);
  cursor: pointer;
}

.content-container {
  max-width: 1200px;
  margin: 100px auto 2rem;
  padding: 0 2rem;
}

.hero-section {
  margin-bottom: 3rem;
}

.modern-search {
  width: 100%;
  padding: 1rem 2rem;
  border: none;
  border-radius: 500px;
  background: var(--surface);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.modern-search:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary);
}

.results-count {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  text-align: center;
}

.music-sections {
  display: grid;
  gap: 2.5rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.see-all {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.see-all:hover {
  color: var(--text-primary);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.tool-card {
  background: var(--surface);
  border: none;
  padding: 2rem;
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.tool-card:hover {
  background: var(--surface-hover);
  transform: translateY(-2px);
  cursor: pointer;
}

.tool-card i {
  font-size: 1.5rem;
  color: var(--primary);
}

/* Song/Playlist Cards */
.song-card, .playlist-card {
  background: var(--surface);
  border-radius: var(--border-radius);
  padding: 1rem;
  transition: all 0.2s ease;
}

.song-card:hover, .playlist-card:hover {
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.playlist-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: calc(var(--border-radius) / 2);
  margin-bottom: 1rem;
}

.playlist-name {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.playlist-details {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .content-container {
      padding: 0 1rem;
  }
  
  .cards-grid {
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .brand {
      font-size: 1.2rem;
  }
  
  .logo {
      height: 32px;
      width: 32px;
  }
}