Version 7 (1.4) — Media Intelligence & Code Quality Update This update brings smarter media handling with duration tracking, drag-to-reorder playlists, overlay ads for the player, and a cleaner, more maintainable codebase. 📊 Media Duration Tracking • Displays total playback duration for all media events • YouTube video durations fetched via YouTube Data API v3 with local caching • Local/URI media durations detected automatically • Duration cache with smart expiration — no unnecessary API calls • Backfills durations for events created before this update 🔀 Drag-to-Reorder Media • Long-press and drag to reorder files in your media playlist • Reorder reflected in actual playback sequence • Smooth animations during drag operations 🎬 Player Overlay Ads • Semi-transparent native ad overlay on media and YouTube players • Ads appear at the bottom — video remains fully visible • Compact, non-intrusive design for both portrait and landscape ⚠️ Battery Optimization Warning • Warning dialog before changing battery settings • Prevents accidental changes while media player overlay is active • Clear guidance to close the player first 🏗️ Code Architecture Improvements • All constants consolidated into a single AppConstants class • Removed duplicate constant declarations across 12+ files • Eliminated unnecessary AdConstants wrapper • Cleaner dependency structure between components 🔋 Battery Settings Fix • Fixed battery optimization toggle display and state tracking • Real-time status correctly refreshes when returning from system settings ⚡ Performance • Version catalog reviewed for safe dependency upgrades • Reduced code duplication for smaller APK size • Improved build maintainability