
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #121212;
    color: #fff;
}
a { color: #1db954; text-decoration: none; }
header {
    background: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 2px solid #f90;
}
header h1 {
    font-size: 24px;
    color: white;
}
header h1 span.orange {
    color: #f90;
}
nav a {
    margin: 0 10px;
    color: white;
}
.container {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
}
.main {
    flex: 1;
    min-width: 300px;
    margin-right: 20px;
}
footer {
    background: #000;
    padding: 20px;
    color: #888;
    text-align: center;
    margin-top: 40px;
}
.widget-box {
    background: #1a1a1a;
    margin-top: 20px;
    padding: 10px;
}
.search-form {
    width: 100%;
    background: #1a1a1a;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-form form {
    width: 100%;
    max-width: 600px;
    display: flex;
    background: #222;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.search-form input[type="text"] {
    flex: 1;
    padding: 14px 20px;
    font-size: 16px;
    border: none;
    outline: none;
    background: #222;
    color: #fff;
    border-radius: 30px 0 0 30px;
}

.search-form button {
    background: #f90;
    color: #000;
    border: none;
    padding: 0 25px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    border-radius: 0 30px 30px 0;
}

.search-form button:hover {
    background: #e68000;
}
.songs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}




.song-card {
    background: #1e1e1e;
    padding: 10px;
    width: 170px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}
.song-card img {
    border-radius: 4px;
    width: 100%;
    margin-bottom: 10px;
}
.song-card a {
    color: #1db954;
    text-decoration: underline;
    font-weight: normal;
    background: none;
    padding: 0;
    border-radius: 0;
    margin: 0;
}
/* Responsif untuk layar kecil (mobile) */
@media (max-width: 768px) {
    .song-card {
        width: 100%;
    }
}
@keyframes flicker {
  0% { opacity: 1; }
  50% { opacity: 0.6; }
  100% { opacity: 1; }
}
.fire {
  color: #f90;
  animation: flicker 0.7s infinite;
}
.sidebar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar {
  background: #121212;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

/* Sticky di desktop */
@media (min-width: 768px) {
  .sidebar-wrapper {
    position: sticky;
    top: 20px;
    max-width: 300px;
    align-self: flex-start;
  }
}

/* Full width di mobile */
@media (max-width: 767px) {
  .sidebar-wrapper {
    position: relative;
    top: auto;
    max-width: 100%;
    width: 100%;
  }
  .sidebar {
    width: 100%;
  }
}
.btn {
  display: inline-block;
  padding: 0.6em 1.2em;
  margin: 0.5em;
  background: #1DB954;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover {
  background: #17a44c;
}
.mobile-only{display:none;}
@media (max-width:767px){.mobile-only{display:inline-block;}}

#suggestions{
  position: fixed;          /* <— kunci presisi */
  display: none;
  margin: 0; padding: 0;
  list-style: none;
  background: #1a1a1a;
  color: #fff;
  border-radius: 6px;
  box-shadow: 0 6px 12px rgba(0,0,0,.45);
  max-height: 280px;
  overflow-y: auto;
  z-index: 99999;           /* di atas elemen lain */
}
#suggestions li{
  padding: 10px 14px;
  font-size: 16px;
  line-height: 1.4;
  cursor: pointer;
}
#suggestions li:hover,
#suggestions li.active{ background:#333; }

/* Mobile tweaks untuk dropdown */
@media (max-width: 767px) {
  #suggestions{
    max-height: 50vh;      /* biar ga nutup layar */
    border-radius: 8px;
  }
  #suggestions li{
    padding: 14px 16px;    /* touch target enak */
    font-size: 17px;
  }
}

/* You May Also Like */
.also-like {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.also-like li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1db954;
  text-decoration: none;          /* override underline */
  font-size: 16px;
}

.also-like li a:hover .also-like-text {
  text-decoration: underline;     /* underline hanya saat hover */
}

.also-like-emoji {
  font-size: 18px;
  line-height: 1;
}

@media (max-width: 767px) {
  .also-like li a { font-size: 17px; }
  .also-like-emoji { font-size: 20px; }
}
/* Suggested list */
.suggested-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.suggested-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.suggested-list .emoji {
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1;
}

.suggested-list a {
  color: #1db954;
  text-decoration: none;
  font-size: 15px;
}

.suggested-list a:hover {
  text-decoration: underline;
}
/* Grid untuk suggested search */
.suggest-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}
@media (min-width: 768px){
  .suggest-grid{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (min-width: 1024px){
  .suggest-grid{ grid-template-columns: repeat(4, minmax(0,1fr)); } /* 4 box desktop */
}

/* Kartu link */
.suggest-card{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #1e1e1e;
  border-radius: 10px;
  box-shadow: 0 0 6px rgba(0,0,0,.25);
  text-decoration: none;         /* no underline */
  color: #1db954;                /* warna link */
  min-height: 56px;              /* tinggi nyaman */
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.suggest-card:hover{
  background: #242424;
  box-shadow: 0 4px 12px rgba(0,0,0,.35);
  transform: translateY(-1px);
}
.suggest-emoji{ font-size: 20px; line-height: 1; flex-shrink: 0; }
.suggest-text{
  font-size: 15px;
  line-height: 1.35;
  color: #1db954;                /* pastikan tetap hijau */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;         /* maksimal 2 baris */
  -webkit-box-orient: vertical;
}
@media (max-width: 767px){
  .suggest-text{ font-size: 16px; }
  .suggest-card{ min-height: 58px; }
}
