/* YouTube Music 播放器样式 V2 - 更接近真实YouTube Music */

/* Toast提示样式 */
.ytmusic-toast {
    position: fixed;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(33, 33, 33, 0.95);
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1010;
    pointer-events: none;
}

.ytmusic-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 进度条时间提示 */
.ytmusic-progress-tooltip {
    position: absolute;
    bottom: 100%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
    margin-bottom: 8px;
}

/* 播放速度选择器 */
.ytmusic-playback-rate {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin-left: 12px;
    cursor: pointer;
    outline: none;
}

.ytmusic-playback-rate:hover {
    color: #fff;
}

.ytmusic-playback-rate option {
    background: #212121;
    color: #fff;
}

/* 循环模式样式 */
.ytmusic-btn.repeat.repeat-off {
    opacity: 0.7;
}

.ytmusic-btn.repeat.repeat-all {
    color: #fff;
}

.ytmusic-btn.repeat.repeat-one {
    color: #ff0000;
    position: relative;
}

.ytmusic-btn.repeat.repeat-one::after {
    content: '1';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    font-weight: bold;
}

/* MTV模式切换按钮 */
.ytmusic-mode-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 16px;
}

.ytmusic-btn.mtv-toggle {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 6px 12px;
}

.ytmusic-btn.mtv-toggle.active {
    background: #ff0000;
    color: #fff;
}

/* 优化时间显示区域 */
.ytmusic-time-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}
.ytmusic-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #212121;
    z-index: 9999; /* 提高z-index，确保在最顶层 */
    display: flex;
    flex-direction: column;
    transform: translateY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 确保播放器始终固定在底部 */
.ytmusic-player.fixed {
    transform: translateY(0) !important;
}

/* 强制禁用播放器的所有transform动画 */
.ytmusic-player,
.ytmusic-player.fixed,
#ytmusicPlayer {
    transform: none !important;
    transition: none !important;
    bottom: 0 !important;
    position: fixed !important;
}

/* 播放进度条 */
.ytmusic-progress-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.ytmusic-progress-fill {
    height: 100%;
    background: #ff0000;
    width: 0;
    position: relative;
}

.ytmusic-progress-handle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #ff0000;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
}

.ytmusic-progress-bar:hover .ytmusic-progress-handle {
    opacity: 1;
}

/* 播放器主体 */
.ytmusic-player-content {
    display: flex;
    align-items: center;
    padding: 0 16px;
    height: 90px;
    position: relative;
    z-index: 1003; /* 确保控件在最上层 */
}

/* 左侧 - 当前播放信息 */
.ytmusic-now-playing {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 14px;
}

.ytmusic-thumbnail {
    width: 48px;
    height: 48px;
    object-fit: cover;
    cursor: pointer;
}

.ytmusic-song-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ytmusic-song-title {
    font-size: 14px;
    color: #fff;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.ytmusic-song-title:hover {
    text-decoration: underline;
}

.ytmusic-song-artist {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.ytmusic-song-artist:hover {
    color: #fff;
    text-decoration: underline;
}

/* 中间 - 播放控制 */
.ytmusic-player-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.ytmusic-control-buttons {
    display: flex;
    align-items: center;
    gap: 0;
}

.ytmusic-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ytmusic-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.ytmusic-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ytmusic-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.ytmusic-btn.play-pause svg {
    width: 40px;
    height: 40px;
}

.ytmusic-btn.shuffle.active,
.ytmusic-btn.repeat.active {
    color: #fff;
}

.ytmusic-time-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* 右侧 - 额外控制 */
.ytmusic-player-actions {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    justify-content: flex-end;
}

.ytmusic-volume-container {
    display: flex;
    align-items: center;
}

.ytmusic-volume-slider {
    width: 0;
    overflow: hidden;
    transition: width 0.2s;
    margin-left: 8px;
}

.ytmusic-volume-container:hover .ytmusic-volume-slider {
    width: 100px;
}

.ytmusic-volume-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
}

.ytmusic-volume-fill {
    height: 100%;
    background: #fff;
    border-radius: 2px;
}

/* 喜欢/不喜欢按钮 */
.ytmusic-btn.like.active svg {
    fill: #fff;
}

.ytmusic-btn.dislike.active svg {
    fill: #fff;
}

/* 队列面板 - 已移除 */
.ytmusic-queue-panel {
    display: none !important;
}

.ytmusic-queue-header {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 16px;
    font-weight: 500;
    color: #fff;
}

.ytmusic-queue-list {
    flex: 1;
    overflow-y: auto;
}

.ytmusic-queue-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.ytmusic-queue-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.ytmusic-queue-item.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.ytmusic-queue-item-thumbnail {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    object-fit: cover;
}

.ytmusic-queue-item-info {
    flex: 1;
    min-width: 0;
}

.ytmusic-queue-item-title {
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ytmusic-queue-item-artist {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 搜索面板 */
.ytmusic-search-panel {
    position: fixed;
    bottom: 90px; /* 在播放器上方 */
    left: 0;
    right: 0;
    width: 100%;
    height: calc(100vh - 90px); /* 只减去底部播放器90px */
    background: #181818;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    transform: translateY(calc(100% + 90px)); /* 完全隐藏在屏幕下方 */
    transition: transform 0.3s ease-out;
    display: flex;
    flex-direction: column;
    z-index: 9998; /* 低于播放器的z-index */
}

.ytmusic-search-panel.active {
    transform: translateY(0); /* 展开时显示在正常位置 */
}

.ytmusic-search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ytmusic-search-title {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
}

.ytmusic-search-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 8px;
    margin-left: 8px;
    border-radius: 50%;
}

.ytmusic-search-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.ytmusic-search-close svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.ytmusic-search-results {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.ytmusic-search-loading {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
}

.ytmusic-search-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ytmusic-search-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    margin-bottom: 4px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.ytmusic-search-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.ytmusic-search-item-thumbnail {
    width: 60px;
    height: 60px;
    margin-right: 16px;
    object-fit: cover;
    border-radius: 4px;
}

.ytmusic-search-item-info {
    flex: 1;
    min-width: 0;
}

.ytmusic-search-item-title {
    font-size: 16px;
    color: #fff;
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ytmusic-search-item-artist {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ytmusic-search-item-play {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.ytmusic-search-item-play:hover {
    background: #e50914;
    transform: scale(1.1);
}

.ytmusic-search-item-play svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    margin-left: 2px;
}

/* Toast提示 */
.ytmusic-toast {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s;
    z-index: 1002;
}

.ytmusic-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* MTV播放界面样式 */
.mtv-playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mtv-playlist-header h2 {
    color: #fff;
    font-size: 24px;
    margin: 0;
}

.close-mtv {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s;
}

.close-mtv:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* MTV视频容器 */
.mtv-video-container {
    width: 100%;
    height: 50vh;
    min-height: 400px;
    background: #000;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mtv-video-container iframe,
.mtv-video-container video {
    width: 100%;
    height: 100%;
    border: none;
}

.no-video {
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
}

/* MTV播放列表 */
.mtv-playlist-items {
    max-height: calc(50vh - 100px);
    overflow-y: auto;
    padding: 10px;
}

.mtv-item {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.mtv-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mtv-item.active {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.5);
}

.mtv-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
}

.mtv-info {
    flex: 1;
    min-width: 0;
}

.mtv-title {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mtv-artist {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mtv-play-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.mtv-play-btn:hover {
    background: #ff0000;
    transform: scale(1.1);
}

.no-mtv,
.error-message {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
}

/* MTV相关样式 */
.mtv-playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mtv-playlist-header h2 {
    margin: 0;
    font-size: 24px;
    color: #fff;
}

.close-mtv {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
}

.close-mtv:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.mtv-video-container {
    width: 100%;
    height: 50vh;
    background: #000;
    margin-bottom: 20px;
    position: relative;
}

.mtv-video-container iframe,
.mtv-video-container video {
    width: 100%;
    height: 100%;
    border: none;
}

.mtv-playlist-items {
    padding: 20px;
}

.mtv-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.mtv-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.mtv-item.active {
    background: rgba(255, 0, 0, 0.1);
}

.mtv-item img {
    width: 80px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 16px;
}

.mtv-info {
    flex: 1;
}

.mtv-title {
    font-size: 14px;
    color: #fff;
    margin-bottom: 4px;
}

.mtv-artist {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.mtv-play-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
}

.mtv-play-btn:hover {
    color: #fff;
}

.no-mtv,
.no-video {
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.5);
}

/* 全屏播放器面板 */
.ytmusic-fullscreen-panel {
    position: fixed !important;
    top: 100% !important; /* 初始位置在屏幕底部之外 */
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: calc(100% - 80px - 90px) !important; /* 减去顶部80px和底部播放器90px */
    background: #000 !important;
    z-index: 10000 !important; /* 比播放器更高的z-index */
    opacity: 1;
    pointer-events: none;
    transition: top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex !important;
    flex-direction: column;
}

.ytmusic-fullscreen-panel.active {
    top: 80px !important; /* 距离顶部80px */
    pointer-events: auto !important;
    visibility: visible !important;
}

.ytmusic-fullscreen-header {
    position: relative;
    height: 80px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 20px;
    flex-shrink: 0;
}

.ytmusic-fullscreen-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background 0.2s;
}

.ytmusic-fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.ytmusic-fullscreen-close svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.ytmusic-fullscreen-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* 左栏 - 60% */
.ytmusic-fullscreen-left {
    width: 60%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #000;
}

.ytmusic-fullscreen-media {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1;
    position: relative;
    margin-bottom: 40px;
}

.ytmusic-fullscreen-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.ytmusic-fullscreen-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.ytmusic-fullscreen-info {
    text-align: center;
}

.ytmusic-fullscreen-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.ytmusic-fullscreen-artist {
    font-size: 24px;
    color: #b3b3b3;
}

/* 右栏 - 40% */
.ytmusic-fullscreen-right {
    width: 40%;
    background: #000;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.ytmusic-fullscreen-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 20px;
}

.ytmusic-tab {
    background: none;
    border: none;
    color: #b3b3b3;
    font-size: 14px;
    font-weight: 500;
    padding: 16px 20px;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.ytmusic-tab:hover {
    color: #fff;
}

.ytmusic-tab.active {
    color: #fff;
}

.ytmusic-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #fff;
}

.ytmusic-fullscreen-tab-content {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.ytmusic-tab-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    padding: 20px;
    display: none;
}

.ytmusic-tab-panel.active {
    display: block;
}

/* 队列样式 */
.ytmusic-fullscreen-queue-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 4px;
}

.ytmusic-fullscreen-queue-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.ytmusic-fullscreen-queue-item.playing {
    background: rgba(255, 0, 0, 0.1);
}

.ytmusic-fullscreen-queue-item .queue-number {
    width: 40px;
    text-align: center;
    color: #b3b3b3;
    font-size: 14px;
}

.ytmusic-fullscreen-queue-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    margin-right: 16px;
    border-radius: 4px;
}

.ytmusic-fullscreen-queue-item .queue-info {
    flex: 1;
    min-width: 0;
}

.ytmusic-fullscreen-queue-item .queue-title {
    font-size: 14px;
    color: #fff;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ytmusic-fullscreen-queue-item .queue-artist {
    font-size: 12px;
    color: #b3b3b3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ytmusic-fullscreen-queue-item .queue-playing {
    color: #f00;
    font-size: 12px;
    margin-right: 10px;
}

.ytmusic-fullscreen-queue-item .queue-remove {
    background: none;
    border: none;
    color: #b3b3b3;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s;
}

.ytmusic-fullscreen-queue-item:hover .queue-remove {
    opacity: 1;
}

.ytmusic-fullscreen-queue-item .queue-remove:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* 歌单样式 */
.ytmusic-fullscreen-playlist-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 4px;
}

.ytmusic-fullscreen-playlist-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.ytmusic-fullscreen-playlist-item .playlist-number {
    width: 40px;
    text-align: center;
    color: #b3b3b3;
    font-size: 14px;
}

.ytmusic-fullscreen-playlist-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    margin-right: 16px;
    border-radius: 4px;
}

.ytmusic-fullscreen-playlist-item .playlist-info {
    flex: 1;
    min-width: 0;
}

.ytmusic-fullscreen-playlist-item .playlist-title {
    font-size: 14px;
    color: #fff;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ytmusic-fullscreen-playlist-item .playlist-artist {
    font-size: 12px;
    color: #b3b3b3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ytmusic-fullscreen-playlist-item .playlist-add {
    background: none;
    border: none;
    color: #b3b3b3;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s;
}

.ytmusic-fullscreen-playlist-item:hover .playlist-add {
    opacity: 1;
}

.ytmusic-fullscreen-playlist-item .playlist-add:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* 歌词样式 */
.ytmusic-fullscreen-lyrics {
    padding: 40px 20px;
    text-align: center;
}

.lyric-line {
    font-size: 18px;
    line-height: 2;
    color: #b3b3b3;
    margin-bottom: 16px;
    transition: color 0.3s;
}

.lyric-line.active {
    color: #fff;
    font-size: 24px;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .ytmusic-player-content {
        padding: 0 12px;
        height: 64px;
    }
    
    .ytmusic-thumbnail {
        width: 40px;
        height: 40px;
    }
    
    .ytmusic-song-title,
    .ytmusic-song-artist {
        font-size: 12px;
    }
    
    .ytmusic-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .ytmusic-btn.play-pause svg {
        width: 32px;
        height: 32px;
    }
    
    .ytmusic-time-info {
        display: none;
    }
    
    .ytmusic-btn.shuffle,
    .ytmusic-btn.repeat,
    .ytmusic-btn.like,
    .ytmusic-btn.dislike {
        display: none;
    }
    
    /* 音量控制在移动端隐藏 */
    .ytmusic-volume-container {
        display: none;
    }
    
    .ytmusic-queue-panel {
        width: 100%;
        right: 0;
        left: 0;
    }
    
    .ytmusic-search-panel {
        width: 100%;
        right: 0;
        left: 0;
        bottom: 64px;
        height: calc(100vh - 64px);
    }
    
    /* 调整播放控制按钮间距 */
    .ytmusic-player-controls {
        flex: 0 0 auto;
    }
    
    .ytmusic-control-buttons {
        gap: 8px;
    }
    
    /* 调整右侧动作按钮 */
    .ytmusic-player-actions {
        gap: 4px;
    }
}