@font-face {
    font-family: 'Montserrat-Local';
    src: url('/fonts/montserrat.ttf') format('truetype');
    font-weight: 900; font-style: normal; font-display: block;
}
@font-face {
    font-family: 'Zen-Local';
    src: url('/fonts/zen.ttf') format('truetype');
    font-weight: 400; font-style: normal; font-display: block;
}

:root { 
    --accent-color: #ff7eb9; 
    --glass-bg: rgba(10, 10, 20, 0.88);
    --text-bright: #ffffff;
    --text-dim: #b0b0c0;
}

body, html { margin: 0; padding: 0; height: 100%; font-family: 'Montserrat-Local', 'Helvetica Neue', 'Helvetica', 'Arial', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', sans-serif; scroll-behavior: smooth; }

body {
    background-image: url('/bg.jpg');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-color: #050505; 
}

body::before {
    content: "";
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 0;
}

.container { 
    max-width: 900px; margin: 0 auto; padding: 60px 20px 150px; position: relative; z-index: 1; 
    animation: containerFadeIn 1.5s ease-out forwards;
    opacity: 0;
}

@keyframes containerFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

header { 
    background: var(--glass-bg); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    padding: 45px 30px; border-radius: 18px; border: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 40px; text-align: center; box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.logo { font-size: 1.6rem; font-weight: 900; letter-spacing: 5px; color: var(--accent-color); text-shadow: 0 0 15px var(--accent-color); text-transform: uppercase; margin-bottom: 25px; display: block; }

.top-nav {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}
.nav-item {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 2px;
    transition: 0.3s;
    cursor: pointer;
}
.nav-item i { margin-right: 5px; }
.nav-item:hover { color: var(--accent-color); }
.nav-item.active {
    color: var(--accent-color);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 126, 185, 0.4);
}
.nav-divider {
    color: rgba(255, 255, 255, 0.15);
    font-size: 0.9rem;
}

.status-ticker { height: 40px; position: relative; display: flex; align-items: center; justify-content: center; }
.ticker-item { position: absolute; opacity: 0; width: 100%; }

.ja-item { animation: crossfade-ja 8s infinite; }
.en-item { animation: crossfade-en 8s infinite; }

@keyframes crossfade-ja { 0% { opacity: 0; transform: translateY(5px); } 5%, 45% { opacity: 1; transform: translateY(0); } 50%, 100% { opacity: 0; transform: translateY(-5px); } }
@keyframes crossfade-en { 0%, 50% { opacity: 0; transform: translateY(5px); } 55%, 95% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-5px); } }

.ja-text { font-family: 'Zen-Local', serif; font-size: 1.35rem; color: var(--text-dim); letter-spacing: 2px; }
.en-text { font-size: 0.85rem; letter-spacing: 2px; color: var(--text-dim); text-transform: uppercase; font-weight: 300; }

.playlist { 
    background: var(--glass-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); 
    border-radius: 18px; border: 1px solid rgba(255,255,255,0.08); 
    padding: 15px; box-shadow: 0 8px 32px rgba(0,0,0,0.3); margin-bottom: 50px;
}

.track { display: flex; align-items: center; padding: 15px 18px; border-bottom: 1px solid rgba(255,255,255,0.04); transition: all 0.3s ease; border-radius: 12px; }
.track:hover { background: rgba(255, 126, 185, 0.08); transform: translateX(5px); }
.track:last-child { border-bottom: none; }

.track-num { width: 35px; color: var(--text-dim); font-size: 0.85rem; font-family: monospace; }
.track-cover { width: 50px; height: 50px; background: rgba(0,0,0,0.3); border-radius: 10px; margin-right: 20px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--accent-color); border: 1px solid rgba(255,126,185,0.2); }
.track-detail { flex: 1; }
.track-title { font-weight: 600; margin-bottom: 4px; font-size: 1rem; color: rgba(255, 255, 255, 0.85); }
.track-artist { color: var(--text-dim); font-size: 0.8rem; letter-spacing: 1px; }

.play-trigger { color: var(--accent-color); font-size: 1.8rem; cursor: pointer; opacity: 0.7; transition: 0.2s; }
.play-trigger:hover { color: #fff; text-shadow: 0 0 15px var(--accent-color); opacity: 1; transform: scale(1.1); }

.player-bar {
    position: fixed; bottom: -120px; left: 0; width: 100%; height: 100px;
    background: rgba(10, 10, 20, 0.95); backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 126, 185, 0.3); z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    transition: bottom 0.6s cubic-bezier(0.16, 1, 0.3, 1); padding: 0 20px;
}
.player-bar.active { bottom: 0; }
.player-content { width: 100%; max-width: 900px; display: flex; align-items: center; justify-content: space-between; }
.now-playing { display: flex; align-items: center; color: rgba(255, 255, 255, 0.85); min-width: 250px; }
.now-playing-info { margin-left: 15px; }

#backToTop {
    position: fixed; bottom: 120px; right: 30px; width: 45px; height: 45px; background: var(--accent-color);
    color: white; border-radius: 50%; border: none; display: none; cursor: pointer; z-index: 100;
    box-shadow: 0 4px 15px rgba(255, 126, 185, 0.4); transition: 0.3s;
}
#backToTop:hover { transform: translateY(-5px); background: #fff; color: var(--accent-color); }

footer { text-align: center; padding-bottom: 50px; color: #666; font-size: 0.75rem; letter-spacing: 2px; line-height: 1.8; }
footer a { color: #888; text-decoration: none; transition: 0.3s; }
footer a:hover { color: var(--accent-color); }

.modal { 
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0, 0, 0, 0.75); z-index: 2000; align-items: center; justify-content: center; 
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    opacity: 0; transition: opacity 0.3s ease;
}
.modal.show { opacity: 1; }
.modal-content { 
    background: rgba(15, 15, 25, 0.95); padding: 40px; border-radius: 12px; 
    border: 1px solid rgba(255, 126, 185, 0.2); text-align: center; width: 320px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.8); transform: translateY(20px); transition: transform 0.3s ease;
}
.modal.show .modal-content { transform: translateY(0); }
.modal-content h2 { color: #fff; font-size: 1.1rem; letter-spacing: 4px; margin-top: 0; margin-bottom: 25px; font-weight: 400; }
.modal-content input { 
    width: 85%; padding: 12px; background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.1); 
    color: var(--accent-color); border-radius: 6px; margin-bottom: 20px; text-align: center; 
    letter-spacing: 3px; outline: none; transition: 0.3s; font-family: monospace; font-size: 0.9rem;
}
.modal-content input:focus { border-color: var(--accent-color); box-shadow: 0 0 15px rgba(255, 126, 185, 0.15); }
.modal-content button { 
    background: transparent; color: var(--text-dim); border: 1px solid rgba(255,255,255,0.1); 
    padding: 10px 0; border-radius: 6px; cursor: pointer; letter-spacing: 2px; transition: 0.3s; width: 93%; 
}
.modal-content button:hover { background: var(--accent-color); color: #fff; border-color: var(--accent-color); }
#loginStatus { margin-top: 20px; font-size: 0.75rem; color: #ff4d4d; height: 15px; font-family: monospace; letter-spacing: 1px; }

audio { filter: invert(1) hue-rotate(180deg) brightness(1.5); height: 35px; width: 400px; }