* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0033 100%);
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ヘッダー */
header {
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    font-size: 2rem;
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-switcher button {
    padding: 0.5rem 1rem;
    border: 1px solid #444;
    background: transparent;
    color: #fff;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.lang-switcher button.active,
.lang-switcher button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* メインコンテンツ */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ヒーローセクション */
.hero {
    text-align: center;
    padding: 3rem 0;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ff00ff, #00ffff, #ff00ff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient 3s ease infinite;
}

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

.hero p {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* チャンネルセクション */
.channels {
    margin: 3rem 0;
}

.channels h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.channel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.channel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.channel:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 0, 255, 0.3);
}

.channel-viz {
    width: 100%;
    height: 100px;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.channel-viz canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.channel h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.channel p {
    opacity: 0.7;
    margin-bottom: 1rem;
}

.play-btn {
    padding: 0.8rem 2rem;
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    border: none;
    border-radius: 25px;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 0, 255, 0.5);
}

/* コントロールセクション */
.controls {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.volume-control input[type="range"] {
    flex: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    border-radius: 50%;
    cursor: pointer;
}

.effects h4 {
    margin-bottom: 1rem;
}

.effect-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.effect-btn {
    padding: 0.6rem 1.5rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.effect-btn:hover,
.effect-btn.active {
    background: rgba(255, 0, 255, 0.3);
    border-color: #ff00ff;
    transform: scale(1.05);
}

/* ダンスフロア */
.dance-floor {
    margin: 3rem 0;
    text-align: center;
}

.dance-floor h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.avatar-container {
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.my-avatar {
    font-size: 4rem;
    transition: all 0.3s;
}

.my-avatar.dancing {
    animation: dance 0.5s ease-in-out infinite;
}

@keyframes dance {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(-10deg); }
    75% { transform: translateY(-20px) rotate(10deg); }
}

.instruction {
    margin-top: 1rem;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* リスナーセクション */
.listeners {
    text-align: center;
    margin: 3rem 0;
}

.listener-count {
    font-size: 3rem;
    margin-top: 1rem;
}

#listener-count {
    color: #ff00ff;
    font-weight: bold;
}

/* フッター */
footer {
    text-align: center;
    padding: 2rem;
    opacity: 0.5;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2rem;
    }
    
    .channel-grid {
        grid-template-columns: 1fr;
    }
    
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .effect-buttons {
        justify-content: center;
    }
}