/* style-pc.css - PC（デスクトップ）での横並び表示専用 */
/* =============================================== */
/* 1. 全体設定 (Body, Background) */
/* =============================================== */
:root {
    --glass-color: rgba(0, 0, 0, 0.4); 
    --neon-blue: #00e0ff;
    --neon-purple: #ff00ff;
    --neon-green: #00ff80;
    --main-bg-color: #0d1a2c;
    --wave-position: 0%; 
    --selected-color: var(--neon-blue); 
}

@font-face {
    font-family: 'CyberFont';
    src: url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');
}

body {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    /* タイトルとコンテナを縦に並べ、中央寄せ */
    text-align: center; 
    padding-top: 50px; 
    
    background-color: var(--main-bg-color);
    overflow-x: hidden; 
    transition: background-color 0.5s;
    background-image: url('fantasy-cyberpunk-narnia.png'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* =============================================== */
/* 7. メインタイトル */
/* =============================================== */
#main-title {
    font-size: 3.5em; 
    font-weight: 700;
    text-align: center;
    color: #fff;
    text-shadow: 0 0 10px var(--neon-purple), 0 0 20px var(--neon-purple), 0 0 40px #ff00ff;
    margin-bottom: 30px; 
    z-index: 20; 
}

/* =============================================== */
/* 2. メインコンテナとガラスパネル (PCレイアウト) */
/* =============================================== */
.container {
    display: flex;
    flex-direction: row; 
    gap: 30px;
    padding: 30px;
    max-width: 1200px; 
    width: 90%; 
    z-index: 10;
    margin: 0 auto; 
    transition: all 0.5s;
    text-align: left; /* コンテナ内の文字は左寄せに戻す */
}

.panel {
    background: var(--glass-color);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    padding: 30px;
    flex: 1; 
    min-width: 300px; 
    transition: all 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.panel:hover {
    box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

h2 {
    text-align: center;
    color: #fff;
    text-shadow: 0 0 8px var(--neon-blue), 0 0 15px var(--neon-blue);
    margin-bottom: 25px;
    font-size: 1.8em;
}

/* =============================================== */
/* 3. ムード入力パネル (Mood Input) */
/* =============================================== */
#mood-input {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    flex-grow: 1; 
}

/* --- カラーホイール --- */
#color-wheel-container {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-bottom: 15px;
    position: relative;
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.5s;
}

#color-wheel {
    cursor: crosshair;
    border-radius: 50%;
    display: block;
}

/* 選択時のリングエフェクト */
#color-wheel-container.selected::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 3px solid var(--selected-color);
    box-shadow: 0 0 15px var(--selected-color);
    pointer-events: none;
    transition: all 0.5s ease;
}

/* ★★★ 再生中の脈動アニメーション ★★★ */
.is-playing-pulse::after {
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    from {
        box-shadow: 0 0 15px var(--selected-color), 0 0 5px var(--selected-color) inset;
    }
    to {
        box-shadow: 0 0 30px var(--selected-color), 0 0 10px var(--selected-color) inset;
    }
}
/* ★★★ ここまで ★★★ */


/* --- キーワード入力 --- */
label {
    align-self: flex-start;
    font-size: 0.9em;
    color: #ccc;
}

#keywords {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 1em;
    box-sizing: border-box;
    font-family: 'Orbitron', sans-serif;
    text-align: center; 
}

/* --- 分析ボタン --- */
#analyze-button {
    background: var(--neon-blue);
    border: none;
    color: var(--main-bg-color);
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    box-shadow: 0 0 15px var(--neon-blue);
    transition: all 0.3s;
    width: 100%; 
    margin-top: 10px;
}

#analyze-button:hover {
    background: #fff;
    box-shadow: 0 0 20px var(--neon-blue);
    transform: translateY(-1px);
}

/* =============================================== */
/* 4. AI分析結果パネル */
/* =============================================== */
#mood-result {
    margin-top: 10px;
    line-height: 1.6;
    font-size: 0.95em;
    color: #e0e0e0;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.9);
    flex-grow: 1; 
}

/* =============================================== */
/* 5. 再生パネル (Player Controls) */
/* =============================================== */
.player-controls {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1; 
}

#track-title {
    font-size: 1.1em;
    color: var(--neon-green);
    text-shadow: 0 0 5px var(--neon-green);
    margin-bottom: 20px;
}

/* --- 再生ボタン --- */
#play-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid var(--neon-purple);
    margin: 30px auto;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    box-shadow: 0 0 15px var(--neon-purple);
}

#play-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-35%, -50%);
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 25px solid var(--neon-purple);
    transition: all 0.3s;
}

/* 一時停止ボタン (再生中) */
#play-button.playing::before {
    transform: translate(-50%, -50%);
    width: 15px;
    height: 30px;
    border: none;
    border-left: 10px solid var(--neon-purple);
    border-right: 10px solid var(--neon-purple);
    background: none;
}

#play-button:hover {
    transform: scale(1.05);
}

/* --- オーディオウェーブアニメーション --- */
.audio-wave-container {
    width: 100%;
    height: 30px;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.3);
    margin-top: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.audio-wave-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%; 
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        var(--neon-blue),
        var(--neon-blue) 3px,
        transparent 3px,
        transparent 6px
    );
    background-size: 20px 20px;
    opacity: 0.5;
    transform: translateX(var(--wave-position)); 
    transition: opacity 0.3s;
}

/* 再生中は波形をネオンカラーに */
.player-controls.is-playing .audio-wave-container::before {
    opacity: 1;
    background: repeating-linear-gradient(
        45deg,
        var(--selected-color),
        var(--selected-color) 3px,
        transparent 3px,
        transparent 6px
    );
    box-shadow: 0 0 10px var(--selected-color);
}

#audio-player-element {
    display: none;
}
