@font-face { font-family: 'Arakom'; src: url('arakom.ttf') format('truetype'); }

:root {
    --bg-main: #0f172a; --container-bg: rgba(30, 41, 59, 0.95);
    --accent: #38bdf8; --neon: #00f2ff;
    --text-primary: #ffffff; --text-secondary: #94a3b8;
    --row-active: rgba(255, 255, 255, 0.08);
}

body.light-theme {
    --bg-main: #e2e8f0; --container-bg: rgba(248, 250, 252, 0.98);
    --accent: #0284c7; --neon: #0369a1;
    --text-primary: #1e293b; --text-secondary: #64748b;
    --row-active: rgba(0, 0, 0, 0.04);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    background: var(--bg-main);
    height: 100vh;
    height: 100dvh;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Segoe UI', sans-serif; transition: 0.5s; overflow: hidden;
}

/* Dinamik Arka Plan - Daha Belirgin ve Canlı */

.background-blobs {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-main);
    display: flex;
    justify-content: space-between; /* Blobları iki yana yaslar */
    align-items: center;
}

.blob {
    position: absolute;
    width: 60vw;
    height: 60vw;
    filter: blur(80px);
    opacity: 0.15; /* Başlangıç opaklığı */
    transition: opacity 0.1s ease, transform 0.1s ease; /* Ritmik değişim için yumuşatma */
}

/* Sol taraftaki blob */
.blob:nth-child(1) {
    left: -20%;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}

/* Sağ taraftaki blob */
.blob:nth-child(2) {
    right: -20%;
    background: radial-gradient(circle, var(--neon) 0%, transparent 70%);
}

/* Açık temada blobları biraz daha koyulaştırarak belirginleştiriyoruz */
body.light-theme .blob {
    opacity: 0.25;
    background: radial-gradient(circle, var(--neon) 0%, transparent 70%);
}

.blob:nth-child(2) {
    bottom: -10%;
    right: -10%;
    background: radial-gradient(circle, var(--neon) 0%, transparent 75%);
    animation-delay: -7s;
    width: 60vw;
    height: 60vw;
}

@keyframes move {
    0% { transform: translate(-10%, -10%) rotate(0deg) scale(1); }
    50% { transform: translate(15%, 10%) rotate(180deg) scale(1.2); }
    100% { transform: translate(-5%, 20%) rotate(360deg) scale(1); }
}

/* Hız butonu ve diğer araçlar için hover efekti */
.tool-btn:hover {
    background: var(--row-active);
    border-color: var(--neon);
    transform: translateY(-2px);
}

.app-container {
    width: 100%; max-width: 900px; height: 100%;
    background: var(--container-bg); backdrop-filter: blur(20px);
    display: flex; flex-direction: column; position: relative;
}

.main-header {
    padding: 15px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid rgba(128,128,128,0.1);
    flex-shrink: 0;
    z-index: 10;
}

.header-section { flex: 1; display: flex; align-items: center; }
.text-right { justify-content: flex-start; }
.text-center { justify-content: center; }
.text-left { justify-content: flex-end; }

.main-title { font-family: 'Arakom', serif; font-size: 1.8rem; color: var(--neon); white-space: nowrap; }
.badge { font-family: 'Arakom', serif; background: var(--accent); color: white; padding: 4px 10px; border-radius: 8px; font-size: 0.9rem; }

.lyrics-viewport {
    flex: 1;
    overflow-y: auto; 
    padding: 20px 15px;
    direction: rtl; text-align: center;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.lyrics-viewport::-webkit-scrollbar { display: none; }

.lyrics-row { margin-bottom: 12px; padding: 15px; border-radius: 15px; transition: 0.4s; opacity: 0.15; }
.word { font-family: 'Arakom', serif; font-size: 1.8rem; color: var(--text-primary); line-height: 1.3; }
.active-row { opacity: 1; background: var(--row-active); transform: scale(1.02); }
.active-row .word { color: var(--neon); font-size: 2.2rem; }

.fixed-bottom-panel {
    flex-shrink: 0;
    background: rgba(0,0,0,0.1);
    border-top: 1px solid rgba(128,128,128,0.1);
    padding-bottom: env(safe-area-inset-bottom);
}

.equalizer-container {
    display: flex; justify-content: center; align-items: flex-end;
    gap: 4px; height: 40px; margin-top: 10px; flex-shrink: 0;
}
.v-bar {
    width: 6px; height: 10%; border-radius: 3px;
    background: linear-gradient(to top, var(--accent), var(--neon));
    transition: height 0.05s ease;
}

.player-footer { padding: 15px 20px; }
.progress-section { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.progress-wrapper { flex-grow: 1; height: 6px; background: rgba(128,128,128,0.3); border-radius: 10px; cursor: pointer; }
.progress-bar { height: 100%; width: 0%; background: var(--accent); border-radius: 10px; transition: 0.1s linear; }
.time-display { font-size: 0.75rem; font-weight: bold; color: var(--text-secondary); min-width: 35px; }

.controls-section { display: flex; justify-content: center; align-items: center; gap: 20px; }
.main-play-btn {
    width: 55px; height: 55px; border-radius: 50%; border: none;
    background: var(--text-primary); color: var(--bg-main); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.main-play-btn svg { width: 26px; height: 26px; fill: currentColor; }

/* Hız Butonu Parlama Efekti */
.speed-flash {
    animation: speedGlow 0.5s ease;
}

@keyframes speedGlow {
    0% { box-shadow: 0 0 0 0 var(--neon); }
    100% { box-shadow: 0 0 10px 10px transparent; }
}

.tool-btn { background: none; border: 1px solid rgba(128,128,128,0.3); color: var(--text-primary); padding: 8px; border-radius: 10px; cursor: pointer; transition: 0.3s; }
.tool-btn svg { width: 18px; height: 18px; fill: currentColor; }
.active-tool { color: var(--neon); border-color: var(--neon); }

@media (max-width: 480px) {
    .main-title { font-size: 1.4rem; }
    .badge { font-size: 0.8rem; }
    .word { font-size: 1.4rem; }
    .active-row .word { font-size: 1.7rem; }
    .main-play-btn { width: 50px; height: 50px; }
    .controls-section { gap: 12px; }
}