.custom-img {
    width: 200px;
}

.hidden-nav .md-header {
    display: none;
}

/* 音频播放器样式 */
#audio-player-container {
    position: fixed;
    top: 100px;
    right: 40px;
    z-index: 1000;
}

.audio-play-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.audio-play-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.audio-play-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.audio-play-button:hover::before {
    width: 100%;
    height: 100%;
}

.audio-play-button:active {
    transform: scale(0.95);
}

.audio-play-button.playing {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

.audio-play-button.playing:hover {
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.6);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(245, 87, 108, 0.7);
    }
}

.audio-icon {
    width: 28px;
    height: 28px;
    position: relative;
    z-index: 1;
}

.audio-icon-pause {
    width: 28px;
    height: 28px;
    position: relative;
    z-index: 1;
}

.icon-path {
    transition: transform 0.2s ease;
}

.audio-play-button:hover .icon-path {
    transform: scale(1.1);
}

/* 响应式设计 - 移动设备 */
@media (max-width: 768px) {
    #audio-player-container {
        top: 80px;
        right: 20px;
    }
    
    .audio-play-button {
        width: 48px;
        height: 48px;
    }
    
    .audio-icon,
    .audio-icon-pause {
        width: 24px;
        height: 24px;
    }
}

/* 确保在 Material 主题下正确显示 */
.md-content #audio-player-container {
    position: fixed;
}

/* 如果页面有右侧边栏（Table of contents），调整位置避免重叠 */
@media (min-width: 1220px) {
    .md-sidebar--secondary ~ .md-main #audio-player-container {
        right: calc(var(--md-sidebar-width, 240px) + 40px);
    }
}