/* ============================================
   全屏播放器 - 双栏布局 + 歌词动效
   ============================================ */
.fullscreen-player {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.fullscreen-player.active {
    opacity: 1;
    visibility: visible;
}

/* 隐藏时暂停所有动画 */
.fullscreen-player:not(.active) * {
    animation-play-state: paused !important;
}

/* 背景 - 与主界面完全一致 */
.fullscreen-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #050508;
    overflow: hidden;
}

/* 主光斑 - 与主界面 blob-primary 完全一致 */
.fullscreen-bg .fs-blob-primary {
    position: absolute;
    top: -40%;
    left: -30%;
    width: 90vw;
    height: 90vw;
    min-width: 700px;
    min-height: 700px;
    max-width: 1400px;
    max-height: 1400px;
    background: radial-gradient(circle, 
        rgba(0, 255, 220, 0.8) 0%, 
        rgba(0, 200, 255, 0.5) 25%,
        rgba(100, 100, 255, 0.3) 50%,
        transparent 70%
    );
    filter: blur(50px);
    mix-blend-mode: screen;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: blobFloat1 8s ease-in-out infinite;
    transition: all 1.5s ease;
}

/* 次光斑 - 与主界面 blob-secondary 完全一致 */
.fullscreen-bg .fs-blob-secondary {
    position: absolute;
    bottom: -50%;
    right: -35%;
    width: 85vw;
    height: 85vw;
    min-width: 650px;
    min-height: 650px;
    max-width: 1300px;
    max-height: 1300px;
    background: radial-gradient(circle, 
        rgba(255, 100, 200, 0.75) 0%, 
        rgba(255, 50, 150, 0.45) 25%,
        rgba(200, 50, 255, 0.25) 50%,
        transparent 70%
    );
    filter: blur(55px);
    mix-blend-mode: screen;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: blobFloat2 10s ease-in-out infinite;
    transition: all 1.5s ease;
}

/* 第三光斑 - 与主界面 blob-tertiary 完全一致 */
.fullscreen-bg .fs-blob-tertiary {
    position: absolute;
    top: 20%;
    left: 20%;
    width: 70vw;
    height: 70vw;
    min-width: 550px;
    min-height: 550px;
    max-width: 1000px;
    max-height: 1000px;
    background: radial-gradient(circle, 
        rgba(100, 200, 255, 0.6) 0%, 
        rgba(150, 100, 255, 0.35) 35%,
        transparent 65%
    );
    filter: blur(60px);
    mix-blend-mode: screen;
    border-radius: 50%;
    animation: blobFloat3 12s ease-in-out infinite;
    transition: all 1.5s ease;
}

/* 极光流 - 与主界面 aurora-flow 完全一致 */
.fullscreen-bg .fs-aurora-flow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg at 50% 50%,
        transparent 0deg,
        rgba(0, 255, 200, 0.12) 45deg,
        transparent 90deg,
        rgba(255, 100, 255, 0.1) 135deg,
        transparent 180deg,
        rgba(100, 150, 255, 0.11) 225deg,
        transparent 270deg,
        rgba(255, 200, 100, 0.08) 315deg,
        transparent 360deg
    );
    filter: blur(50px);
    mix-blend-mode: screen;
    animation: auroraRotate 30s linear infinite;
    opacity: 1;
}

/* 播放时光效更强 - 与主界面完全一致 */
.app.playing .fullscreen-bg .fs-blob-primary {
    animation: blobFloat1 5s ease-in-out infinite, blobBreath 1.5s ease-in-out infinite;
}

.app.playing .fullscreen-bg .fs-blob-secondary {
    animation: blobFloat2 6s ease-in-out infinite, blobBreath 2s ease-in-out infinite;
}

.app.playing .fullscreen-bg .fs-blob-tertiary {
    animation: blobFloat3 7s ease-in-out infinite, blobBreath 1.8s ease-in-out infinite;
}

.app.playing .fullscreen-bg .fs-aurora-flow {
    animation: auroraRotate 20s linear infinite;
}

/* 关闭按钮 */
.fullscreen-close {
    position: absolute;
    top: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    z-index: 10;
}

.fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

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

/* ============================================
   主内容区 - 双栏布局
   ============================================ */
.fullscreen-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8vw;
    width: 100%;
    height: 100%;
    padding: 60px 5vw;
    box-sizing: border-box;
}

/* 左侧 - 封面和控制 */
.fullscreen-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex-shrink: 0;
    width: 35%;
    max-width: 420px;
}

/* 封面 */
.fullscreen-cover {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 20px;
    overflow: visible;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(var(--accent-rgb, 100, 150, 255), 0.2);
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fullscreen-player.active .fullscreen-cover {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.fullscreen-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    position: relative;
    z-index: 2;
}

/* 封面四周环绕光效容器 */
.fullscreen-cover .cover-glow {
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 26px;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s;
    overflow: hidden;
}

.fullscreen-cover .cover-glow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        rgba(var(--accent-rgb, 100, 150, 255), 1) 0deg,
        rgba(var(--accent-rgb, 100, 150, 255), 0.1) 45deg,
        rgba(255, 255, 255, 0.9) 90deg,
        rgba(var(--accent-rgb, 100, 150, 255), 0.1) 135deg,
        rgba(var(--accent-rgb, 100, 150, 255), 1) 180deg,
        rgba(var(--accent-rgb, 100, 150, 255), 0.1) 225deg,
        rgba(255, 255, 255, 0.9) 270deg,
        rgba(var(--accent-rgb, 100, 150, 255), 0.1) 315deg,
        rgba(var(--accent-rgb, 100, 150, 255), 1) 360deg
    );
    animation: glowSpin 3s linear infinite;
}

.fullscreen-cover .cover-glow::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    background: var(--canvas-deep, #0a0a0f);
    border-radius: 20px;
}

/* 播放时显示光效 */
.app.playing .fullscreen-cover .cover-glow {
    opacity: 1;
}

@keyframes glowSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 外层光晕呼吸效果 */
.fullscreen-cover .cover-glow-outer {
    position: absolute;
    top: -25px;
    left: -25px;
    right: -25px;
    bottom: -25px;
    border-radius: 40px;
    background: radial-gradient(
        ellipse at center,
        rgba(var(--accent-rgb, 100, 150, 255), 0.5) 0%,
        rgba(var(--accent-rgb, 100, 150, 255), 0.2) 40%,
        transparent 70%
    );
    z-index: 0;
    opacity: 0;
    filter: blur(20px);
    transition: opacity 0.5s;
}

.app.playing .fullscreen-cover .cover-glow-outer {
    opacity: 1;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.cover-reflection {
    position: absolute;
    bottom: -60%;
    left: 5%;
    right: 5%;
    height: 100%;
    background: inherit;
    border-radius: 20px;
    transform: scaleY(-1);
    opacity: 0.15;
    filter: blur(10px);
    mask-image: linear-gradient(to bottom, transparent 30%, black 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 30%, black 100%);
    pointer-events: none;
}

/* 歌曲信息 */
.fullscreen-info {
    text-align: center;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.5s ease;
    transition-delay: 0.15s;
}

.fullscreen-player.active .fullscreen-info {
    transform: translateY(0);
    opacity: 1;
}

.fullscreen-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fullscreen-artist {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
}

/* 进度条 */
.fullscreen-progress {
    width: 100%;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.5s ease;
    transition-delay: 0.2s;
}

.fullscreen-player.active .fullscreen-progress {
    transform: translateY(0);
    opacity: 1;
}

.fullscreen-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 12px;
    overflow: visible;
}

.fullscreen-progress-played {
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.8), white);
    border-radius: 3px;
    position: relative;
    transition: width 0.1s linear;
    box-shadow: 
        0 0 6px rgba(255, 255, 255, 0.9),
        0 0 12px rgba(255, 255, 255, 0.7),
        0 0 24px rgba(200, 230, 255, 0.5),
        0 0 48px rgba(150, 200, 255, 0.3);
}

.fullscreen-progress-played::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    box-shadow: 
        0 0 8px rgba(255, 255, 255, 1),
        0 0 16px rgba(200, 230, 255, 0.8),
        0 0 32px rgba(150, 200, 255, 0.6);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.fullscreen-progress-bar:hover .fullscreen-progress-played::after {
    opacity: 1;
}

.fullscreen-time {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    color: rgba(255, 255, 255, 0.5);
}

/* 控制按钮 */
.fullscreen-controls {
    display: flex;
    align-items: center;
    gap: 24px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.5s ease;
    transition-delay: 0.25s;
}

.fullscreen-player.active .fullscreen-controls {
    transform: translateY(0);
    opacity: 1;
}

.fullscreen-controls .btn-icon {
    width: 48px;
    height: 48px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.fullscreen-controls .btn-icon:hover {
    color: white;
    transform: scale(1.1);
}

.fullscreen-controls .btn-icon svg {
    width: 24px;
    height: 24px;
}

.btn-play-large {
    width: 72px;
    height: 72px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(var(--accent-rgb, 100, 150, 255), 0.3);
}

.btn-play-large:hover {
    transform: scale(1.1);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(var(--accent-rgb, 100, 150, 255), 0.5);
}

.btn-play-large:active {
    transform: scale(0.95);
}

.btn-play-large svg {
    width: 32px;
    height: 32px;
}

.btn-play-large .icon-play {
    margin-left: 4px;
}

/* ============================================
   右侧 - 歌词区域
   ============================================ */
.fullscreen-right {
    width: 50%;
    max-width: 650px;
    height: 70%;
    max-height: 550px;
    display: flex;
    align-items: center;
    transform: translateX(50px);
    opacity: 0;
    transition: all 0.6s ease;
    transition-delay: 0.3s;
    padding-left: 4vw;
}

.fullscreen-player.active .fullscreen-right {
    transform: translateX(0);
    opacity: 1;
}

.lyrics-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        black 15%,
        black 85%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        black 15%,
        black 85%,
        transparent 100%
    );
}

.lyrics-scroll {
    height: 100%;
    overflow-y: auto;
    padding: 40% 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.lyrics-scroll::-webkit-scrollbar {
    display: none;
}

/* ============================================
   歌词行样式 - 全局联动动画版
   ============================================ */
.lyric-line {
    padding: 14px 20px;
    font-size: 20px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.25);
    line-height: 1.7;
    letter-spacing: 1.5px;
    word-spacing: 10px;
    cursor: pointer;
    transition: 
        transform 0.4s cubic-bezier(0.34, 1.3, 0.64, 1),
        opacity 0.3s ease-out,
        color 0.3s ease-out;
    transform: scale(0.9) translateX(-10px);
    transform-origin: left center;
    position: relative;
    border-radius: 12px;
    opacity: 0.5;
}

.lyric-line:hover {
    color: rgba(255, 255, 255, 0.45);
    opacity: 0.7;
    transform: scale(0.9) translateX(-10px);
}

/* 当前播放歌词 - 弹动高亮 */
.lyric-line.active {
    font-size: 28px;
    font-weight: 600;
    color: white;
    letter-spacing: 2px;
    word-spacing: 12px;
    transform: scale(1) translateX(0);
    text-shadow: 
        0 0 30px rgba(var(--accent-rgb, 100, 150, 255), 0.6),
        0 0 60px rgba(var(--accent-rgb, 100, 150, 255), 0.3);
    padding: 20px 20px;
    opacity: 1;
    animation: lyricPop 0.5s cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* 当前歌词弹入动画 */
@keyframes lyricPop {
    0% {
        transform: scale(0.88) translateX(-15px);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.03) translateX(5px);
    }
    75% {
        transform: scale(0.99) translateX(-2px);
    }
    100% {
        transform: scale(1) translateX(0);
        opacity: 1;
    }
}

/* 歌词左侧指示条 */
.lyric-line.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(1);
    width: 4px;
    height: 60%;
    background: rgba(var(--accent-rgb, 100, 150, 255), 1);
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(var(--accent-rgb, 100, 150, 255), 0.8);
    animation: barGrow 0.4s cubic-bezier(0.34, 1.5, 0.64, 1) forwards;
}

@keyframes barGrow {
    0% {
        transform: translateY(-50%) scaleY(0);
        opacity: 0;
    }
    60% {
        transform: translateY(-50%) scaleY(1.2);
    }
    100% {
        transform: translateY(-50%) scaleY(1);
        opacity: 1;
    }
}

/* 已播放歌词 */
.lyric-line.passed {
    color: rgba(255, 255, 255, 0.5);
    transform: scale(0.9) translateX(0);
    opacity: 0.7;
}

/* 下一句歌词预备 - 更突出 */
.lyric-line.active + .lyric-line:not(.passed) {
    color: rgba(255, 255, 255, 0.5);
    opacity: 0.8;
    transform: scale(0.94) translateX(-5px);
}

/* 下两句也稍微突出 */
.lyric-line.active + .lyric-line + .lyric-line:not(.passed) {
    opacity: 0.6;
    transform: scale(0.9) translateX(-10px);
}

/* 歌词文字 */
.lyric-line.active .lyric-text {
    display: inline-block;
}

/* ============================================
   歌词占位/加载状态
   ============================================ */
.lyrics-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.4);
    font-size: 16px;
}

.lyrics-loading {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.lyrics-loading span {
    width: 8px;
    height: 8px;
    background: rgba(var(--accent-rgb, 100, 150, 255), 0.8);
    border-radius: 50%;
    animation: loadingBounce 1.4s ease-in-out infinite;
}

.lyrics-loading span:nth-child(1) { animation-delay: 0s; }
.lyrics-loading span:nth-child(2) { animation-delay: 0.2s; }
.lyrics-loading span:nth-child(3) { animation-delay: 0.4s; }

@keyframes loadingBounce {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.no-lyrics {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.3);
    font-size: 18px;
}

.no-lyrics::before {
    content: '♪';
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* ============================================
   歌词动画入场效果
   ============================================ */
/* 入场动画已整合到transition中，无需额外animation */

/* ============================================
   响应式布局
   ============================================ */
@media (max-width: 1200px) {
    .fullscreen-content {
        flex-direction: column;
        gap: 40px;
        padding: 40px;
    }
    
    .fullscreen-left {
        width: 100%;
    }
    
    .fullscreen-cover {
        width: 280px;
        height: 280px;
    }
    
    .fullscreen-right {
        width: 100%;
        max-height: 300px;
    }
    
    .lyric-line {
        font-size: 20px;
        padding: 12px 20px;
    }
    
    .lyric-line.active {
        font-size: 26px;
        padding: 16px 20px;
    }
}

@media (max-width: 768px) {
    .fullscreen-content {
        padding: 24px;
    }
    
    .fullscreen-cover {
        width: 220px;
        height: 220px;
    }
    
    .fullscreen-title {
        font-size: 22px;
    }
    
    .fullscreen-right {
        max-height: 250px;
    }
    
    .lyric-line {
        font-size: 18px;
    }
    
    .lyric-line.active {
        font-size: 22px;
    }
}

/* 封面旋转动画（播放时） */
.app.playing .fullscreen-cover {
    animation: coverFloat 6s ease-in-out infinite;
}

@keyframes coverFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(1deg);
    }
}

/* ============================================
   逐字歌词 (YRC) 样式 - 整词弹跳高亮
   ============================================ */
.yrc-line .lyric-text {
    display: inline;
}

.yrc-word {
    display: inline-block;
    position: relative;
    color: rgba(255, 255, 255, 0.35);
    transition: 
        color 0.15s ease-out,
        transform 0.25s cubic-bezier(0.34, 1.5, 0.64, 1),
        text-shadow 0.2s ease-out;
    transform: translateY(0) scale(1);
}

/* 当前正在唱的字 - 柔和弹跳 */
.yrc-word.yrc-current {
    color: white;
    transform: translateY(-3px) scale(1.06);
    text-shadow: 
        0 0 20px rgba(var(--accent-rgb, 100, 150, 255), 0.8),
        0 0 40px rgba(var(--accent-rgb, 100, 150, 255), 0.4);
}

/* 已唱完的字 */
.yrc-word.yrc-passed {
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(0) scale(1);
    text-shadow: 0 0 8px rgba(var(--accent-rgb, 100, 150, 255), 0.3);
}

/* 当前行未唱到的字 */
.lyric-line.active .yrc-word:not(.yrc-current):not(.yrc-passed) {
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   翻译歌词样式
   ============================================ */
.lyric-trans {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 6px;
    line-height: 1.5;
    transition: 
        color 0.3s ease-out,
        font-size 0.3s ease-out;
}

.lyric-line.active .lyric-trans {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
}

.lyric-line.passed .lyric-trans {
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   翻译切换按钮
   ============================================ */
.trans-btn {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.trans-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
}

.trans-btn.active {
    background: rgba(var(--accent-rgb, 100, 150, 255), 0.2);
    color: rgba(var(--accent-rgb, 100, 150, 255), 1);
    border-color: rgba(var(--accent-rgb, 100, 150, 255), 0.3);
}
