/* Tamilanda.Net v4 main styles */
body{
  margin:0;
  font-family:Inter,Arial,Helvetica,sans-serif;
  background:#f6f4f7;
  color:#222;
}
.header{
  background:#23a455;
  color:#fff;
  padding:12px;
  font-size:18px;
  font-weight:700;
}
.header-search{
  padding:8px 12px;
  background:#fff;
  border-bottom:1px solid #eee;
}
.header-search input{
  width:100%;
  padding:8px;
  border-radius:6px;
  border:1px solid #ccc;
  font-size:14px;
}

/* Sections */
.section-title{
  padding:10px 12px;
  font-weight:700;
  color:#444;
}

/* Category list */
.cat-list{
  list-style:none;
  padding:8px;
  margin:0;
}
.cat-item{
  display:flex;
  align-items:center;
  padding:12px;
  background:#fff;
  border-radius:10px;
  margin-bottom:8px;
  box-shadow:0 1px 3px rgba(0,0,0,0.04);
}
.cat-item a{
  display:flex;
  align-items:center;
  text-decoration:none;
  color:inherit;
  width:100%;
}
.thumb-img,
.cat-item img{
  width:80px;
  height:80px;
  border-radius:10px;
  margin-right:12px;
  object-fit:cover;
  flex:0 0 80px;
}
.thumb{
  width:80px;
  height:80px;
  border-radius:10px;
  margin-right:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-size:28px;
  color:#fff;
}
.thumb.c1{background:#f39c12;}
.thumb.c2{background:#3498db;}
.thumb.c3{background:#9b59b6;}
.thumb.c4{background:#e74c3c;}
.thumb.c5{background:#1abc9c;}
.thumb.c6{background:#2ecc71;}

.cat-title{
  font-size:16px;
  font-weight:700;
  color:#0b3b2f;
}
.cat-count{
  font-size:13px;
  color:#666;
  margin-top:4px;
}

/* File (track) list */
.file-list{
  list-style:none;
  padding:8px;
  margin:0;
}
.file-row{
  background:#fff;
  border-radius:12px;
  margin-bottom:8px;
  box-shadow:0 1px 3px rgba(0,0,0,0.04);
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.track-link{
  display:flex;
  align-items:center;
  padding:10px 12px;
  text-decoration:none;
  color:#222;
  flex:1;
}
.play-icon{
  width:36px;
  height:36px;
  border-radius:50%;
  background:#5c57d9;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-right:12px;
  flex:0 0 36px;
}
.file-info{
  display:flex;
  flex-direction:column;
}
.file-title{
  font-size:15px;
  font-weight:600;
}
.file-artist{
  font-size:13px;
  color:#777;
  margin-top:2px;
}
.file-duration{
  margin-left:12px;
  color:#666;
  min-width:40px;
  text-align:right;
}
.file-actions{
  display:flex;
  align-items:center;
  padding:8px 12px;
}
.download-icon{
  width:36px;
  height:36px;
  border-radius:50%;
  border:1px solid #26c281;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#26c281;
  text-decoration:none;
}

/* Pagination */
.pager{
  display:flex;
  justify-content:center;
  gap:8px;
  padding:12px 0;
}
.pager a{
  padding:6px 10px;
  background:#fff;
  border-radius:6px;
  border:1px solid #eee;
  color:#0073aa;
  text-decoration:none;
}
.pager span.current{
  padding:6px 10px;
  border-radius:6px;
  background:#23a455;
  color:#fff;
}

/* Song detail page */
.song-card{
  max-width:1000px;
  margin:20px auto;
  padding:20px;
  background:#fff;
  border-radius:12px;
  display:flex;
  gap:20px;
  box-shadow:0 2px 8px rgba(0,0,0,0.04);
}
.thumb-img-large{
  width:300px;
  height:300px;
  object-fit:cover;
  border-radius:12px;
}
.song-meta h1{
  font-size:22px;
  margin:0 0 12px 0;
}
.song-meta table{
  width:100%;
  border-collapse:collapse;
  margin-top:6px;
}
.song-meta td{
  padding:6px 0;
  color:#444;
}
.song-actions{
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:flex-start;
}
.primary-btn{
  display:inline-block;
  padding:10px 18px;
  border-radius:24px;
  background:#04b77f;
  color:#fff;
  text-decoration:none;
  font-weight:700;
}
.secondary-btn{
  display:inline-block;
  padding:10px 18px;
  border-radius:24px;
  background:#4b3bc8;
  color:#fff;
  text-decoration:none;
  font-weight:700;
}

/* Related list */
.related .item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px;
  background:#fafafa;
  border-radius:8px;
  margin-bottom:8px;
  text-decoration:none;
  color:inherit;
}
.related .item img{
  width:60px;
  height:60px;
  object-fit:cover;
  border-radius:8px;
}

/* Footer */
.footer{
  padding:12px;
  text-align:center;
  color:#777;
  margin-top:12px;
}

/* Responsive tweaks */
@media(max-width:800px){
  .song-card{
    flex-direction:column;
  }
  .thumb-img-large{
    width:100%;
    height:auto;
  }
  .file-row{
    flex-direction:column;
    align-items:stretch;
  }
  .file-duration{
    margin-left:0;
    padding-top:6px;
    text-align:left;
  }
}

.breadcrumb {
  background: #fafafa;
  padding: 10px 14px;
  border-bottom: 1px solid #ececec;
  font-size: 14px;
}
.breadcrumb a {
  color: #1279c4;
  text-decoration: none;
  font-weight: 600;
}
.breadcrumb span {
  font-weight: 600;
}
.song-details td:first-child {
  width: 95px;
  color: #666;
  font-weight: 600;
}
.subtitle {
  margin-bottom: 8px;
  font-size: 15px;
  color: #444;
}

/* NEW: icon-based song meta list */
.song-meta-list{
  list-style:none;
  margin:8px 0 0 0;
  padding:0;
}
.song-meta-item{
  display:flex;
  align-items:center;
  gap:8px;
  padding:4px 0;
  font-size:14px;
}
.meta-icon{
  width:24px;
  text-align:center;
  opacity:0.85;
}
.meta-label{
  min-width:70px;
  font-weight:600;
  color:#666;
}
.meta-value{
  color:#333;
}


/* Text share block (from earlier) */
.share-box {
    margin-top: 18px;
    text-align: left;
    font-size: 15px;
    color: #444;
}
.share-label {
    font-weight: 600;
    margin-right: 6px;
}
.share-link {
    color: #1666c5;
    text-decoration: none;
    font-weight: 600;
}
.share-link:hover {
    text-decoration: underline;
}
.sep {
    margin: 0 6px;
    color: #666;
}

/* Bitrate quality badge */
.quality-badge {
    display:inline-block;
    padding:2px 8px;
    border-radius:999px;
    font-size:12px;
    font-weight:600;
}
.quality-badge.q-320 { background:#d1fae5; color:#065f46; }  /* 320+ */
.quality-badge.q-256 { background:#dbeafe; color:#1e3a8a; }  /* 256 */
.quality-badge.q-192 { background:#fef3c7; color:#92400e; }  /* 192 */
.quality-badge.q-128 { background:#fee2e2; color:#b91c1c; }  /* 128 */
.quality-badge.q-low { background:#e5e7eb; color:#374151; }  /* below */

/* Final waveform box */
#waveform {
  width: 100%;
  height: 70px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  margin: 12px 0 16px;
}


/* Lyrics box (if not already added) */
.lyrics-box{
    max-width:1000px;
    margin:0 auto 16px;
    padding:12px 14px;
    background:#fafafa;
    border-radius:10px;
    font-size:14px;
    line-height:1.6;
    max-height:320px;
    overflow-y:auto;
}

/* Multi-quality download badges */
.quality-select {
  margin-top: 14px;
}
.q-label {
  font-weight: 600;
  margin-right: 8px;
  font-size: 15px;
}
.q-badge {
  display: inline-block;
  margin: 4px 6px;
  padding: 6px 12px;
  background: #e0f2fe;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: #0369a1;
  border: 1px solid #7dd3fc;
}
.q-badge:hover {
  background: #bae6fd;
}

.album-header {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 14px 18px 6px;
}

.album-cover-wrap {
    flex: 0 0 auto;
}

.album-cover-medium {
    width: 180px;
    height: 180px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.album-cover-medium-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 12px;
    background: #22a34a;
    color: #fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size: 72px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.album-meta {
    flex: 1 1 auto;
}

.album-meta h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.album-meta-line {
    font-size: 14px;
    color: #555;
}

.format-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 7px;
    font-size: 11px;
    border-radius: 999px;
    background: #e7f0ff;
    color: #1554d0;
    vertical-align: middle;
}
.ads-box {
    margin:20px auto;
    max-width: 100%;
    overflow: hidden;
}
.ads-box iframe, .ads-box script {
    max-width: 100%;
}


#suggestBox {
    position:absolute;
    top: 100%;
    left: 0;
    right: 0;
    background:#fff;
    border: 1px solid #ddd;
    border-radius:6px;
    max-height:300px;
    overflow-y:auto;
    z-index: 99999;
}
#suggestBox .s-item {
    padding:10px 12px;
    cursor:pointer;
}
#suggestBox .s-item:hover {
    background:#f2f2f2;
}

.album-cover {
    width: 240px;
    height: 240px;
    object-fit: cover;
    border-radius: 12px;
}
@media(max-width:600px){
    .album-cover { width: 170px; height: 170px; }
}


/* Folder Thumbnail */
.folder-thumb {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    object-fit: cover;
}

/* Album Poster (Inside album view) */
.album-cover {
    width: 240px;
    height: 240px;
    object-fit: cover;
    border-radius: 12px;
}

/* Fix pagination UI */
.pagination {
    text-align: center;
    margin: 25px 0;
}
.pagination a {
    padding: 8px 14px;
    margin: 2px;
    border-radius: 6px;
    background: #e3e3e3;
    display: inline-block;
    font-weight: bold;
}
.pagination a.active {
    background: #28a745;
    color: white;
}

