从 马来西亚 地区 800 多首 MV、200 多位歌手 中评选而出
根据「日均观看数」排行,以下是本日 TOP 50 热门歌曲榜单:
.custom-youtube-card {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
font-family: Arial, sans-serif;
margin: 20px 0;
}
.custom-youtube-card .card {
background: #fff;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
overflow: hidden;
transition: transform 0.3s;
position: relative;
border: 3px solid transparent;
}
.custom-youtube-card .card:hover {
transform: translateY(-4px);
}
.custom-youtube-card .thumb-wrapper {
position: relative;
cursor: pointer;
}
.custom-youtube-card .thumb {
width: 100%;
aspect-ratio: 16 / 9;
object-fit: cover;
}
.custom-youtube-card .play-button {
position: absolute;
top: 50%; left: 50%;
transform: translate(-50%, -50%);
font-size: 48px;
color: white;
background: rgba(0,0,0,0.4);
border-radius: 50%;
width: 64px;
height: 64px;
display: flex;
align-items: center;
justify-content: center;
pointer-events: none;
}
.custom-youtube-card .info {
padding: 15px;
}
.custom-youtube-card .rank-badge {
display: inline-block;
font-size: 20px;
font-weight: bold;
width: 42px;
height: 42px;
line-height: 42px;
text-align: center;
border-radius: 50%;
background: #eee;
color: #333;
margin-bottom: 10px;
}
.custom-youtube-card .rank-1 { background: gold; color: white; border: 3px solid orange; font-size: 22px; }
.custom-youtube-card .rank-2 { background: silver; color: black; }
.custom-youtube-card .rank-3 { background: #cd7f32; color: white; }
.custom-youtube-card .title {
font-size: 16px;
font-weight: bold;
margin: 0 0 5px;
}
.custom-youtube-card .champion-tag {
background: linear-gradient(to right, gold, orange);
color: white;
padding: 4px 8px;
font-size: 12px;
border-radius: 4px;
display: inline-block;
margin-bottom: 6px;
}
.custom-youtube-card .artist {
font-size: 14px;
color: #666;
margin-bottom: 10px;
}
.custom-youtube-card .meta {
font-size: 13px;
color: #444;
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.custom-youtube-card .meta span {
background: #f2f2f2;
padding: 3px 8px;
border-radius: 6px;
}
@media screen and (max-width: 768px) {
.custom-youtube-card { grid-template-columns: 1fr; }
}
window.addEventListener(“DOMContentLoaded”, function () {
let ytPlaylist = [];
let ytTitles = {};
let currentIndex = 0;
let iframe = document.getElementById(“ytMiniPlayerIframe”);
let nowPlaying = document.getElementById(“ytNowPlaying”);
window.openYtModal = function (videoId, title = “”) {
if (!ytPlaylist.includes(videoId)) {
ytPlaylist.push(videoId);
ytTitles[videoId] = title;
showToast(“已加入:” + title);
} else {
showToast(“已在播放列表中:” + title);
}
if (document.getElementById(“ytMiniPlayer”).style.display === “none”) {
currentIndex = ytPlaylist.length – 1;
playCurrentVideo();
}
}
function playCurrentVideo() {
if (ytPlaylist.length === 0) return;
let currentId = ytPlaylist[currentIndex];
iframe.src = “https://www.youtube.com/embed/” + currentId + “?autoplay=1&enablejsapi=1”;
document.getElementById(“ytMiniPlayer”).style.display = “block”;
nowPlaying.innerText = ytTitles[currentId] || “-“;
}
window.skipVideo = function () {
if (ytPlaylist.length === 0) return;
currentIndex = (currentIndex + 1) % ytPlaylist.length;
playCurrentVideo();
}
window.clearPlaylist = function () {
ytPlaylist = [];
ytTitles = {};
currentIndex = 0;
iframe.src = “”;
nowPlaying.innerText = “-“;
document.getElementById(“ytMiniPlayer”).style.display = “none”;
}
function showToast(message) {
let toast = document.getElementById(“ytToast”);
toast.innerText = message;
toast.style.display = “block”;
setTimeout(() => {
toast.style.display = “none”;
}, 2000);
}
});














































