/* ========================================
   小蜜蜂音乐 - 排行榜样式
   ======================================== */

/* 排行榜标题区 */
.ranking-hero {
    position: relative;
    height: 360px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 32px;
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* 光效层 */
.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(135deg, rgba(45, 212, 160, 0.15) 0%, transparent 50%),
        linear-gradient(225deg, rgba(78, 205, 196, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(255, 107, 107, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 217, 61, 0.1) 0%, transparent 50%);
    animation: bgShimmer 8s ease-in-out infinite;
}

@keyframes bgShimmer {
    0%, 100% { opacity: 0.5; transform: translateX(-10px) scale(1); }
    50% { opacity: 1; transform: translateX(10px) scale(1.05); }
}

/* 动态光带 */
.hero-gradient {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(45, 212, 160, 0.1) 20%, 
        rgba(78, 205, 196, 0.2) 50%, 
        rgba(45, 212, 160, 0.1) 80%, 
        transparent 100%
    );
    animation: lightSweep 4s ease-in-out infinite;
}

@keyframes lightSweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 网格背景 */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(45, 212, 160, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 212, 160, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* 粒子效果 */
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(45, 212, 160, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(45, 212, 160, 0.8);
    animation: particleFloat 4s ease-in-out infinite;
}

.particle:nth-child(1) { left: 5%; top: 15%; animation-delay: 0s; }
.particle:nth-child(2) { left: 15%; top: 65%; animation-delay: 0.5s; background: rgba(255, 217, 61, 0.8); box-shadow: 0 0 10px rgba(255, 217, 61, 0.8); }
.particle:nth-child(3) { left: 25%; top: 25%; animation-delay: 1s; }
.particle:nth-child(4) { left: 35%; top: 75%; animation-delay: 1.5s; background: rgba(255, 107, 107, 0.8); box-shadow: 0 0 10px rgba(255, 107, 107, 0.8); }
.particle:nth-child(5) { left: 45%; top: 20%; animation-delay: 2s; }
.particle:nth-child(6) { left: 55%; top: 70%; animation-delay: 2.5s; background: rgba(78, 205, 196, 0.8); box-shadow: 0 0 10px rgba(78, 205, 196, 0.8); }
.particle:nth-child(7) { left: 65%; top: 30%; animation-delay: 3s; }
.particle:nth-child(8) { left: 75%; top: 60%; animation-delay: 3.5s; background: rgba(255, 217, 61, 0.8); box-shadow: 0 0 10px rgba(255, 217, 61, 0.8); }
.particle:nth-child(9) { left: 85%; top: 40%; animation-delay: 4s; background: rgba(255, 107, 107, 0.8); box-shadow: 0 0 10px rgba(255, 107, 107, 0.8); }
.particle:nth-child(10) { left: 95%; top: 25%; animation-delay: 4.5s; }
.particle:nth-child(11) { left: 8%; top: 45%; animation-delay: 5s; background: rgba(78, 205, 196, 0.8); box-shadow: 0 0 10px rgba(78, 205, 196, 0.8); }
.particle:nth-child(12) { left: 92%; top: 80%; animation-delay: 5.5s; background: rgba(255, 217, 61, 0.8); box-shadow: 0 0 10px rgba(255, 217, 61, 0.8); }

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.4; }
    25% { transform: translateY(-20px) translateX(10px) scale(1.3); opacity: 1; }
    50% { transform: translateY(-40px) translateX(0) scale(1.5); opacity: 1; }
    75% { transform: translateY(-20px) translateX(-10px) scale(1.3); opacity: 0.8; }
}

/* 星星装饰 */
.hero-stars {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-stars .star {
    position: absolute;
    font-size: 24px;
    color: rgba(255, 217, 61, 0.9);
    text-shadow: 0 0 20px rgba(255, 217, 61, 0.8);
    animation: starTwinkle 1.5s ease-in-out infinite;
}

.hero-stars .star:nth-child(1) { left: 3%; top: 20%; animation-delay: 0s; }
.hero-stars .star:nth-child(2) { left: 92%; top: 15%; animation-delay: 0.3s; font-size: 18px; }
.hero-stars .star:nth-child(3) { left: 8%; top: 75%; animation-delay: 0.6s; font-size: 16px; }
.hero-stars .star:nth-child(4) { left: 88%; top: 70%; animation-delay: 0.9s; font-size: 20px; }
.hero-stars .star:nth-child(5) { left: 48%; top: 10%; animation-delay: 1.2s; font-size: 14px; }

@keyframes starTwinkle {
    0%, 100% { opacity: 0.2; transform: scale(0.8) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.4) rotate(180deg); }
}

/* 浮动音乐符号 */
.hero-floats {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.float-item {
    position: absolute;
    font-size: 28px;
    opacity: 0.3;
    animation: floatMove 8s ease-in-out infinite;
}

.float-item:nth-child(1) { left: 5%; top: 30%; animation-delay: 0s; }
.float-item:nth-child(2) { left: 12%; top: 60%; animation-delay: 1s; font-size: 22px; }
.float-item:nth-child(3) { right: 8%; top: 25%; animation-delay: 2s; }
.float-item:nth-child(4) { right: 15%; top: 55%; animation-delay: 3s; font-size: 24px; }
.float-item:nth-child(5) { left: 20%; top: 40%; animation-delay: 4s; font-size: 20px; }
.float-item:nth-child(6) { right: 10%; top: 70%; animation-delay: 5s; font-size: 26px; }

@keyframes floatMove {
    0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0.2; }
    25% { transform: translateY(-30px) translateX(20px) rotate(15deg); opacity: 0.5; }
    50% { transform: translateY(-15px) translateX(-10px) rotate(-10deg); opacity: 0.3; }
    75% { transform: translateY(-40px) translateX(15px) rotate(20deg); opacity: 0.5; }
}

/* 底部波浪 */
.hero-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-repeat: repeat-x;
    background-position: 0 bottom;
    background-size: 50% 100%;
}

.wave-1 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%232DD4A0' fill-opacity='0.3' d='M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    animation: waveMove 6s linear infinite;
    z-index: 3;
}

.wave-2 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%234ECDC4' fill-opacity='0.2' d='M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    animation: waveMove 10s linear infinite reverse;
    bottom: 10px;
    z-index: 2;
}

.wave-3 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23FFD93D' fill-opacity='0.15' d='M0,64L48,80C96,96,192,128,288,128C384,128,480,96,576,106.7C672,117,768,171,864,186.7C960,203,1056,181,1152,165.3C1248,149,1344,139,1392,133.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    animation: waveMove 15s linear infinite;
    bottom: 20px;
    z-index: 1;
}

@keyframes waveMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 圆环装饰 */
.hero-rings {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ring {
    position: absolute;
    border: 1px solid rgba(45, 212, 160, 0.2);
    border-radius: 50%;
    animation: ringPulse 3s ease-out infinite;
}

.ring-1 {
    width: 200px;
    height: 200px;
    animation-delay: 0s;
}

.ring-2 {
    width: 300px;
    height: 300px;
    animation-delay: 1s;
}

.ring-3 {
    width: 400px;
    height: 400px;
    animation-delay: 2s;
}

@keyframes ringPulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 0; }
}

/* 内容区域 */
.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 50px;
    color: white;
}

.hero-icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: iconBounce 2s ease-in-out infinite, slideInLeft 0.8s ease-out;
    filter: drop-shadow(0 0 30px rgba(255, 217, 61, 0.8));
}

@keyframes slideInLeft {
    0% { transform: translateX(-100px) rotate(-30deg); opacity: 0; }
    100% { transform: translateX(0) rotate(0deg); opacity: 1; }
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    25% { transform: translateY(-10px) rotate(-8deg) scale(1.1); }
    50% { transform: translateY(0) rotate(0deg) scale(1); }
    75% { transform: translateY(-10px) rotate(8deg) scale(1.1); }
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: 12px;
    animation: slideInRight 0.8s ease-out 0.2s backwards, gradientText 4s ease infinite;
    background: linear-gradient(135deg, #2dd4a0 0%, #4ecdc4 30%, #FFD93D 60%, #2dd4a0 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 40px rgba(45, 212, 160, 0.6));
}

@keyframes slideInRight {
    0% { transform: translateX(100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes gradientText {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-desc {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 6px;
    color: rgba(255, 255, 255, 0.9);
    animation: descAnim 0.8s ease-out 0.4s forwards;
    opacity: 0;
    transform: translateY(20px);
    margin-bottom: 32px;
}

@keyframes descAnim {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 0.9;
        transform: translateY(0);
    }
}

/* 统计标签 */
.hero-stats {
    display: flex;
    gap: 32px;
    animation: statsAnim 0.8s ease-out 0.6s forwards;
    opacity: 0;
    transform: translateY(20px);
    margin-top: 8px;
}

@keyframes statsAnim {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(45, 212, 160, 0.4);
    border-radius: 24px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.stat-item:hover {
    background: rgba(45, 212, 160, 0.25);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(45, 212, 160, 0.3);
}

.stat-item i {
    font-style: normal;
    font-size: 14px;
}

/* 边框效果 */
.hero-border {
    position: absolute;
    inset: 2px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(45, 212, 160, 0.3);
    pointer-events: none;
}

/* 角落装饰 */
.hero-corner {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(45, 212, 160, 0.3);
}

.hero-corner.top-left {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
    border-radius: 8px 0 0 0;
}

.hero-corner.top-right {
    top: 10px;
    right: 10px;
    border-left: none;
    border-bottom: none;
    border-radius: 0 8px 0 0;
}

.hero-corner.bottom-left {
    bottom: 10px;
    left: 10px;
    border-right: none;
    border-top: none;
    border-radius: 0 0 0 8px;
}

.hero-corner.bottom-right {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
    border-radius: 0 0 8px 0;
}

/* 榜单选择标签 */
.ranking-tabs {
    margin-bottom: 24px;
}

.tabs-container {
    display: flex;
    gap: 16px;
    /* justify-content: center; */
}

.tab-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    min-width: 200px;
}

.tab-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.tab-item.active {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.tab-image {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

.tab-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tab-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.tab-item:hover .tab-overlay,
.tab-item.active .tab-overlay {
    background: rgba(45, 212, 160, 0.3);
}

.tab-icon {
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.tab-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.tab-name {
    font-size: 16px;
    font-weight: 700;
}

.tab-desc {
    font-size: 12px;
    opacity: 0.7;
}

/* 榜单内容区域 */
.ranking-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 榜单面板 */
.chart-panel {
    display: none;
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.chart-panel.active {
    display: block;
}

/* 榜单头部 */
.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.chart-cover-wrap {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.chart-cover {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.chart-info {
    flex: 1;
}

.chart-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.chart-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

.play-all-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.play-all-btn:hover {
    background: var(--primary-hover);
}

/* 歌曲列表 - 复用 playlist-detail.css 样式 */
.songs-list {
    display: flex;
    flex-direction: column;
}

.songs-list .songs-table-header {
    display: grid;
    grid-template-columns: 60px 1fr 150px 200px 80px;
    gap: 16px;
    padding: 12px 16px;
    font-size: 13px;
    color: var(--text-tertiary);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.songs-list .song-row {
    display: grid;
    grid-template-columns: 60px 1fr 150px 200px 80px;
    gap: 16px;
    padding: 12px 16px;
    align-items: center;
    border-radius: 0;
    transition: all var(--transition-fast);
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
}

.songs-list .song-row:last-child {
    border-bottom: none;
}

.songs-list .song-row:hover {
    background: var(--bg-hover);
}

.songs-list .col-index {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.songs-list .song-num {
    font-size: 14px;
    color: var(--text-tertiary);
}

.songs-list .song-num.top1 {
    color: #FF6B6B;
    font-size: 24px;
    font-weight: 800;
}

.songs-list .song-num.top2 {
    color: #FFA502;
    font-size: 22px;
    font-weight: 700;
}

.songs-list .song-num.top3 {
    color: #FFD93D;
    font-size: 20px;
    font-weight: 700;
}

/* 前三名歌曲行放大效果 */
.songs-list .song-row.top-rank {
    padding: 20px 16px;
    background: linear-gradient(90deg, rgba(255, 217, 61, 0.05) 0%, transparent 100%);
    border-left: 3px solid transparent;
}

.songs-list .song-row.top-rank-1 {
    background: linear-gradient(90deg, rgba(255, 107, 107, 0.08) 0%, transparent 100%);
    border-left: 3px solid #FF6B6B;
}

.songs-list .song-row.top-rank-2 {
    background: linear-gradient(90deg, rgba(255, 165, 2, 0.08) 0%, transparent 100%);
    border-left: 3px solid #FFA502;
}

.songs-list .song-row.top-rank-3 {
    background: linear-gradient(90deg, rgba(255, 217, 61, 0.08) 0%, transparent 100%);
    border-left: 3px solid #FFD93D;
}

.songs-list .song-row.top-rank .song-thumb {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.songs-list .song-row.top-rank .song-name {
    font-size: 16px;
    font-weight: 600;
}

.songs-list .song-row.top-rank-1 .song-name {
    font-size: 17px;
    font-weight: 700;
}

.songs-list .song-row.top-rank .col-artist,
.songs-list .song-row.top-rank .col-album,
.songs-list .song-row.top-rank .col-duration {
    font-size: 14px;
}

.songs-list .song-play-btn {
    position: absolute;
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-fast);
}

.songs-list .song-row:hover .song-num {
    opacity: 0;
}

.songs-list .song-row:hover .song-play-btn {
    opacity: 1;
}

.songs-list .col-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.songs-list .song-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.songs-list .song-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.songs-list .song-name {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.songs-list .song-vip {
    padding: 2px 6px;
    background: linear-gradient(135deg, #FFD700, #FFD700);
    color: #3D3229;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.songs-list .col-artist,
.songs-list .col-album {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.songs-list .col-duration {
    font-size: 13px;
    color: var(--text-tertiary);
    text-align: right;
}

/* 趋势标签 */
.songs-list .trend-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 500;
    margin-right: 6px;
}

.songs-list .trend-tag.up {
    background: rgba(45, 212, 160, 0.15);
    color: var(--primary-color);
}

.songs-list .trend-tag.down {
    background: rgba(255, 107, 107, 0.15);
    color: var(--error-color);
}

.songs-list .trend-tag.new {
    background: rgba(78, 205, 196, 0.15);
    color: #4ECDC4;
}

/* 响应式 */
@media (max-width: 1024px) {
    .songs-list .songs-table-header,
    .songs-list .song-row {
        grid-template-columns: 50px 1fr 100px 60px;
    }

    .songs-list .col-album {
        display: none;
    }

    .chart-cover-wrap {
        width: 70px;
        height: 70px;
    }

    .chart-name {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .ranking-hero {
        height: 140px;
    }

    .hero-title {
        font-size: 28px;
    }

    .tabs-container {
        gap: 6px;
    }

    .tab-item {
        padding: 8px 16px;
        font-size: 13px;
    }

    .chart-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .header-left {
        flex-direction: column;
    }

    .songs-list .songs-table-header,
    .songs-list .song-row {
        grid-template-columns: 40px 1fr 80px;
    }

    .songs-list .col-artist {
        display: none;
    }

    .chart-cover-wrap {
        width: 60px;
        height: 60px;
    }

    .play-all-btn {
        width: 100%;
        justify-content: center;
    }
}