/* === Gigsplay Music Chart - Clean Modern Design with !important overrides === */

.gmc-chart-container {
  width: 100% !important;
  max-width: 980px !important;
  margin: 15px auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
  color: #111 !important;
  background: #e7e7e7 !important;
  padding: 20px !important;
  border-radius: 0 !important;
  box-sizing: border-box !important;
}

.gmc-chart-container * {
  box-sizing: border-box !important;
}

.gmc-item {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  background: #fff !important;
  border-radius: 0 !important;
  padding: 12px 36px !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04) !important;
  transition: box-shadow 0.2s ease !important;
  position: relative !important;
  border: none !important;
  margin: 0 !important;
}

.gmc-item:hover {
  box-shadow: 0 2px 5px rgba(0,0,0,0.06) !important;
}

/* TOP RANK SPECIAL STYLING */
.gmc-top {
  background: #fff !important;
  padding: 14px 36px !important;
  padding-left: 114px !important;
}

.gmc-top::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 80px !important;
  background: linear-gradient(135deg, #0086d6 0%, #0073aa 100%) !important;
}

.gmc-left {
  display: flex !important;
  align-items: center !important;
  gap: 28px !important;
  flex: 1 !important;
  min-width: 0 !important;
}

/* RANK NUMBER - DESKTOP */
.gmc-rank {
  min-width: 50px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  margin: 0 !important;
  padding: 0 !important;
}

.gmc-rank span {
  font-weight: 700 !important;
  font-size: 26px !important;
  color: #000 !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.gmc-top .gmc-rank {
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 80px !important;
  justify-content: center !important;
  min-width: 80px !important;
}

.gmc-top .gmc-rank span {
  font-size: 34px !important;
  color: #fff !important;
  font-weight: 800 !important;
}

/* COVER IMAGE */
.gmc-cover {
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.gmc-cover img {
  width: 75px !important;
  height: 75px !important;
  object-fit: cover !important;
  border-radius: 6px !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

.gmc-top .gmc-cover img {
  width: 130px !important;
  height: 130px !important;
  border-radius: 8px !important;
}

/* MOVEMENT INDICATOR - SVG icons */
.gmc-move {
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  margin: 0 10px 0 0 !important;
  padding: 0 !important;
}

.gmc-move svg {
  width: 28px !important;
  height: 28px !important;
  display: block !important;
}

.gmc-move.up svg {
  fill: #00d66f !important;
}

.gmc-move.down svg {
  fill: #ff4757 !important;
}

.gmc-move.same svg {
  fill: #aaa !important;
}

.gmc-move.new {
  width: 28px !important;
  height: 28px !important;
}

/* MOVEMENT INDICATOR FOR RANK #1 - same size */
.gmc-top .gmc-move {
  width: 28px !important;
  height: 28px !important;
}

.gmc-top .gmc-move svg {
  width: 28px !important;
  height: 28px !important;
}

/* NEW ENTRY BADGE - same height as cover image */
.gmc-badge {
  flex-shrink: 0 !important;
  background: #00d66f !important;
  color: transparent !important;
  text-transform: uppercase !important;
  font-size: 0 !important;
  font-weight: 700 !important;
  padding: 0 !important;
  border-radius: 3px !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  margin: 0 10px 0 0 !important;
  min-width: 22px !important;
  width: 22px !important;
  height: 75px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
  position: relative !important;
  transform: none !important;
  line-height: 0 !important;
  text-indent: -9999px !important;
}

.gmc-badge::after {
  content: "NEW ENTRY" !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) rotate(-90deg) !important;
  white-space: nowrap !important;
  font-size: 7px !important;
  letter-spacing: 0.5px !important;
  width: auto !important;
  display: block !important;
  line-height: 1 !important;
  color: #fff !important;
  text-indent: 0 !important;
}

.gmc-top .gmc-badge {
  font-size: 0 !important;
  min-width: 26px !important;
  width: 26px !important;
  height: 130px !important;
  color: transparent !important;
}

.gmc-top .gmc-badge::after {
  font-size: 9px !important;
  letter-spacing: 0.6px !important;
  color: #fff !important;
}

/* TRACK INFO */
.gmc-track {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-width: 0 !important;
  flex: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.gmc-title {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #000 !important;
  line-height: 1.3 !important;
  margin: 0 0 3px 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.gmc-artist {
  font-size: 14px !important;
  color: #666 !important;
  line-height: 1.3 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.gmc-top .gmc-title {
  font-size: 24px !important;
  margin: 0 0 5px 0 !important;
}

.gmc-top .gmc-artist {
  font-size: 18px !important;
}

/* RIGHT SECTION */
.gmc-right {
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* STATS COLUMN */
.gmc-stats {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  text-align: right !important;
  min-width: 135px !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Hide stats inside track on desktop */
.gmc-track .gmc-stats {
  display: none !important;
}

.gmc-stats p {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.4 !important;
  font-weight: 400 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  font-size: 11px !important;
  color: #000 !important;
}

.gmc-stats span {
  font-size: 11px !important;
  text-transform: uppercase !important;
  letter-spacing: 1.1px !important;
  color: #aaa !important;
  font-weight: 400 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* PLAY BUTTON */
.gmc-play {
  width: 48px !important;
  height: 48px !important;
  border: 2.5px solid #e5e5e5 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.25s ease !important;
  flex-shrink: 0 !important;
  background: #fff !important;
  margin: 0 !important;
  padding: 0 !important;
  text-decoration: none !important;
}

.gmc-play svg {
  width: 19px !important;
  height: 19px !important;
  stroke: #777 !important;
  stroke-width: 2.5 !important;
  transition: all 0.25s ease !important;
  margin-left: 3px !important;
  fill: none !important;
}

.gmc-play:hover {
  border-color: #333 !important;
  background: #fafafa !important;
}

.gmc-play:hover svg {
  stroke: #000 !important;
}

/* --- RESPONSIVE TABLET --- */
@media (min-width: 641px) and (max-width: 768px) {
  .gmc-chart-container {
    gap: 14px !important;
  }
  
  .gmc-item {
    padding: 10px 26px !important;
  }
  
  .gmc-top {
    padding: 12px 26px !important;
    padding-left: 105px !important;
  }
  
  .gmc-top::before {
    width: 75px !important;
  }
  
  .gmc-top .gmc-rank {
    width: 75px !important;
    min-width: 75px !important;
  }
  
  .gmc-left {
    gap: 20px !important;
  }
  
  /* TABLET RANK FONT SIZE */
  .gmc-rank span {
    font-size: 24px !important;
  }
  
  .gmc-top .gmc-rank span {
    font-size: 30px !important;
  }
  
  .gmc-cover img {
    width: 65px !important;
    height: 65px !important;
  }
  
  .gmc-top .gmc-cover img {
    width: 65px !important;
    height: 65px !important;
  }
  
  .gmc-badge {
    min-width: 18px !important;
    width: 18px !important;
    height: 65px !important;
  }
  
  .gmc-badge::after {
    font-size: 6px !important;
  }
  
  .gmc-top .gmc-badge {
    min-width: 18px !important;
    width: 18px !important;
    height: 65px !important;
  }
  
  .gmc-top .gmc-badge::after {
    font-size: 6px !important;
  }
  
  .gmc-move {
    width: 24px !important;
    height: 24px !important;
  }
  
  .gmc-move svg {
    width: 24px !important;
    height: 24px !important;
  }
  
  .gmc-top .gmc-move {
    width: 24px !important;
    height: 24px !important;
  }
  
  .gmc-top .gmc-move svg {
    width: 24px !important;
    height: 24px !important;
  }
  
  .gmc-title {
    font-size: 15px !important;
  }
  
  .gmc-artist {
    font-size: 13px !important;
  }
  
  .gmc-top .gmc-title {
    font-size: 15px !important;
  }
  
  .gmc-top .gmc-artist {
    font-size: 13px !important;
  }
  
  .gmc-right {
    gap: 16px !important;
  }
  
  .gmc-stats {
    min-width: 110px !important;
  }
  
  .gmc-stats p {
    font-size: 10px !important;
  }
  
  .gmc-stats span {
    font-size: 10px !important;
  }
  
  .gmc-play {
    width: 42px !important;
    height: 42px !important;
  }
  
  .gmc-play svg {
    width: 16px !important;
    height: 16px !important;
  }
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 640px) {
  .gmc-chart-container {
    padding: 12px 8px !important;
    background: #e7e7e7 !important;
    gap: 10px !important;
  }
  
  .gmc-item {
    padding: 12px 12px !important;
    flex-direction: row !important;
    align-items: center !important;
  }
  
  .gmc-top {
    padding: 12px 12px !important;
    padding-left: 12px !important;
    flex-direction: row !important;
  }
  
  .gmc-top::before {
    display: none !important;
  }
  
  .gmc-left {
    width: 100% !important;
    gap: 10px !important;
    flex-direction: row !important;
    align-items: center !important;
  }
  
  /* MOBILE RANK NUMBER - sama untuk semua */
  .gmc-rank {
    position: static !important;
    transform: none !important;
    min-width: 28px !important;
    width: 28px !important;
    flex-shrink: 0 !important;
    justify-content: center !important;
    align-items: center !important;
  }
  
  /* MOBILE RANK FONT SIZE */
  .gmc-rank span {
    font-size: 20px !important;
  }
  
  /* MOBILE Rank #1 dengan background biru */
  .gmc-top .gmc-rank {
    position: static !important;
    transform: none !important;
    width: 28px !important;
    min-width: 28px !important;
    height: auto !important;
    background: linear-gradient(135deg, #0086d6 0%, #0073aa 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 4px !important;
    flex-shrink: 0 !important;
    padding: 4px 0 !important;
  }
  
  /* MOBILE RANK #1 FONT SIZE */
  .gmc-top .gmc-rank span {
    font-size: 20px !important;
    color: #fff !important;
  }
  
  .gmc-cover {
    flex-shrink: 0 !important;
    margin: 0 !important;
  }
  
  .gmc-cover img {
    width: 65px !important;
    height: 65px !important;
    border-radius: 6px !important;
  }
  
  .gmc-top .gmc-cover img {
    width: 65px !important;
    height: 65px !important;
    border-radius: 6px !important;
  }
  
  .gmc-move {
    width: 16px !important;
    height: 16px !important;
    margin: 0 6px 0 0 !important;
    flex-shrink: 0 !important;
  }
  
  .gmc-move svg {
    width: 16px !important;
    height: 16px !important;
  }
  
  .gmc-top .gmc-move {
    width: 16px !important;
    height: 16px !important;
    margin: 0 6px 0 0 !important;
  }
  
  .gmc-top .gmc-move svg {
    width: 16px !important;
    height: 16px !important;
  }
  
  .gmc-badge {
    width: 16px !important;
    height: 65px !important;
    font-size: 0 !important;
    color: transparent !important;
    margin: 0 6px 0 0 !important;
    flex-shrink: 0 !important;
  }
  
  .gmc-badge::after {
    font-size: 6px !important;
    letter-spacing: 0.3px !important;
    color: #fff !important;
  }
  
  .gmc-top .gmc-badge {
    width: 16px !important;
    height: 65px !important;
  }
  
  .gmc-top .gmc-badge::after {
    font-size: 6px !important;
  }
  
  .gmc-track {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  .gmc-title {
    font-size: 14px !important;
    margin: 0 0 2px 0 !important;
    line-height: 1.2 !important;
  }
  
  .gmc-artist {
    font-size: 12px !important;
    margin: 0 0 4px 0 !important;
    line-height: 1.2 !important;
  }
  
  .gmc-top .gmc-title {
    font-size: 14px !important;
  }
  
  .gmc-top .gmc-artist {
    font-size: 12px !important;
  }
  
  /* Stats horizontal di bawah artist */
  .gmc-track .gmc-stats {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .gmc-stats p {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    font-weight: 400 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 3px !important;
    font-size: 10px !important;
    color: #999 !important;
  }
  
  .gmc-stats span {
    font-size: 10px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: #999 !important;
    font-weight: 400 !important;
  }
  
  /* Hide desktop stats, show play button */
  .gmc-right {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    flex-shrink: 0 !important;
  }
  
  .gmc-right .gmc-stats {
    display: none !important;
  }
  
  .gmc-play {
    display: flex !important;
    width: 27px !important;
    height: 27px !important;
    border: 1.5px solid #ddd !important;
  }
  
  .gmc-play svg {
    width: 11px !important;
    height: 11px !important;
  }
}

@media (max-width: 480px) {
  .gmc-stats p {
    font-size: 9px !important;
  }
  
  .gmc-stats span {
    font-size: 9px !important;
  }
}