:root { --bg1: linear-gradient(145deg, #101820, #1f2937, #2d3e50); --bg2: #1c2833; --bg3: #273746; --text: #f5f7fa; --accent: #4f8cff; --accent-hover: #6faaff; --scrollbar-bg: rgba(255, 255, 255, 0.05); --scrollbar-thumb: rgba(255, 255, 255, 0.2); --shadow: 0 4px 20px rgba(0, 0, 0, 0.4); } [data-theme="light"] { --bg1: #f4f6f8; --bg2: #ffffff; --bg3: #e9ecf0; --text: #111; --accent: #0057e7; --accent-hover: #267aff; --scrollbar-bg: rgba(0, 0, 0, 0.05); --scrollbar-thumb: rgba(0, 0, 0, 0.15); --shadow: 0 4px 15px rgba(0, 0, 0, 0.1); } * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: 'Segoe UI', sans-serif; background: var(--bg1); color: var(--text); display: flex; height: 100vh; overflow: hidden; transition: background 0.4s ease, color 0.3s ease; } #sidebar { display: flex; flex-direction: column; justify-content: center; align-items: center; /* horizontal zentrieren */ padding: 1.2rem; gap: 1rem; } #playlist-search { padding: 0.6rem 1rem; border: none; border-radius: 12px; font-size: 1rem; background: var(--bg3); color: var(--text); box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.15); transition: background-color 0.3s, box-shadow 0.3s; width: 90%; /* Breite fast volle Breite */ margin: 0 auto; /* horizontal mittig */ display: block; /* Sicherstellen, dass margin wirkt */ } #playlist-search:focus { outline: none; box-shadow: 0 0 0 2px var(--accent); } #playlist-search::placeholder { color: var(--scrollbar-thumb); } #playlists, #tracks { overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-bg); -webkit-overflow-scrolling: touch; max-width: 60%; /* Maximal so breit wie der Container */ box-sizing: border-box; /* Padding + Border in Breite einberechnen */ padding-right: 0.5rem; /* Platz für Scrollbar, falls nötig */ } #playlists::-webkit-scrollbar, #tracks::-webkit-scrollbar { width: 8px; } #playlists::-webkit-scrollbar-track, #tracks::-webkit-scrollbar-track { background: var(--scrollbar-bg); border-radius: 10px; } #playlists::-webkit-scrollbar-thumb, #tracks::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 10px; transition: background-color 0.3s; } #playlists::-webkit-scrollbar-thumb:hover, #tracks::-webkit-scrollbar-thumb:hover { background: var(--accent); } .playlist-item, .track-item { padding: 0.6rem 1rem; margin-bottom: 0.3rem; cursor: pointer; border-radius: 10px; user-select: none; transition: 0.3s; max-width: 100%; /* Nicht breiter als Container */ box-sizing: border-box; /* Wichtig, damit Padding die Breite nicht sprengt */ word-wrap: break-word; /* Lange Texte umbrechen */ } .playlist-item:hover, .playlist-item.active, .track-item:hover, .track-item.active { background: var(--accent); font-weight: 700; color: #fff; } #playlists-container, #tracks-container { flex-grow: 1; overflow-y: auto; height: auto; /* oder max-height, nicht fix */ } .track-item { display: flex; align-items: center; gap: 0.75rem; } .track-cover { width: 40px; height: 40px; background: var(--bg3); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: #888; user-select: none; } #player { flex-grow: 1; background: var(--bg3); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; gap: 1rem; } #cover-large { width: 300px; height: 300px; border-radius: 20px; background: #2c5364; display: flex; align-items: center; justify-content: center; font-size: 48px; color: #888; user-select: none; } #track-info { text-align: center; } #track-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 0.3rem; } #track-album { font-size: 1.1rem; color: #a0bcd9; } #controls { display: flex; align-items: center; gap: 1.2rem; font-size: 2rem; } button.control-btn { background: none; border: none; cursor: pointer; padding: 0.3rem 0.7rem; border-radius: 10px; color: var(--text); transition: 0.3s; user-select: none; } button.control-btn:hover { background: var(--accent); } #settings-panel { position: absolute; top: 50px; right: 10px; background: var(--bg3); padding: 1rem 1.5rem; border-radius: 12px; box-shadow: var(--shadow); display: none; width: 220px; font-size: 0.95rem; color: var(--text); user-select: none; } #settings-panel.show { display: block; } #settings-panel h3 { margin-bottom: 0.7rem; font-weight: 700; border-bottom: 1px solid var(--accent); padding-bottom: 0.3rem; } #settings-panel label { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.8rem; cursor: pointer; } #seekbar { width: 80%; appearance: none; height: 6px; border-radius: 6px; background: var(--accent); cursor: pointer; user-select: none; } #seekbar::-webkit-slider-thumb { appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--text); border: 2px solid var(--accent); cursor: pointer; user-select: none; } @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } @media (max-width: 768px) { body { flex-direction: column; } #sidebar { width: 100%; max-height: 200px; } #player { padding: 1rem; } } #loading-screen { position: fixed; inset: 0; background: var(--bg1); color: var(--text); display: flex; align-items: center; justify-content: center; z-index: 9999; animation: fadeIn 0.3s ease-in-out; } .loader-content { text-align: center; background: var(--bg3); padding: 2rem 3rem; border-radius: 20px; box-shadow: var(--shadow); } .loader-text { margin-top: 1rem; font-size: 1.2rem; } .loader-animation { display: flex; gap: 0.5rem; justify-content: center; } .loader-animation span { width: 10px; height: 10px; background: var(--text); border-radius: 50%; animation: bounce 1s infinite ease-in-out; } .loader-animation span:nth-child(2) { animation-delay: 0.1s; } .loader-animation span:nth-child(3) { animation-delay: 0.2s; } .loader-animation span:nth-child(4) { animation-delay: 0.3s; } .loader-animation span:nth-child(5) { animation-delay: 0.4s; } @keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } } .favorite-button { background: none; border: none; outline: none; box-shadow: none; cursor: pointer; padding: 0; font-size: 1.2em; line-height: 1; transition: transform 0.2s ease; } .favorite-button:hover { transform: scale(1.2); } #suggestions-box { position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--bg3); border: 1px solid #444; border-radius: 6px; padding: 4px 0; margin-top: 4px; box-shadow: var(--shadow); max-height: 180px; overflow-y: auto; z-index: 10; animation: fadeSlideDown 0.2s ease-out forwards; } #suggestions-box li { padding: 8px 12px; cursor: pointer; color: var(--text); transition: background 0.2s ease; } #suggestions-box li:hover { background-color: var(--accent-hover); } @keyframes fadeSlideDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } } @keyframes fadeOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-4px); } } @keyframes slideUpFade { 0% { opacity: 0; transform: translateY(10px); } 100% { opacity: 1; transform: translateY(0); } } #tracks-container { height: 400px; /* Oder eine passende Höhe */ overflow-y: auto; } #track-list button { background-color: transparent; border: 2px solid #0078d7; color: #0078d7; padding: 0.2em 0.5em; border-radius: 6px; cursor: pointer; font-size: 1rem; transition: background-color 0.3s ease, color 0.3s ease; } #track-list button:hover { background-color: #0078d7; color: white; } #back-button { background-color: transparent; border: 2px solid var(--accent, #0078d7); color: var(--accent, #0078d7); padding: 0.3rem 0.7rem; border-radius: 10px; cursor: pointer; font-weight: 700; font-size: 1rem; transition: background-color 0.3s; user-select: none; } #back-button:hover { background-color: var(--accent, #0078d7); color: #fff; }