=== Simple Radio Forty Two ===

Contributors: tlloancy
Tags: radio, player, streaming, music, audio, vanilla-js, icecast, multi-station
Requires at least: 5.0
Tested up to: 6.9
Requires PHP: 7.0
Stable tag: 1.3.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Listen to your favorite radio directly from WordPress with Simple Radio Forty Two. Lightweight, jQuery-free, and optimized for performance.

== Description ==

Simple Radio Forty Two is a minimalist yet powerful radio player plugin for WordPress, inspired by the Spirit of 42. Built with Vanilla JavaScript, it ensures zero dependencies and lightning-fast loading times. 

The player features a unique "Smart Buffer" system that synchronizes with your page load, a "Persistence Engine" that remembers your last selected station after a refresh (F5), and a Click Lock mechanism to prevent interface spamming, providing a seamless listening experience.

== Installation ==

1. Download the Simple Radio Forty Two ZIP file.
2. Log in to your WordPress Dashboard.
3. Go to Plugins > Add New and click Upload Plugin.
4. Choose the ZIP file and click Install Now.
5. Activate the plugin.

== Configuration ==

1. After activation, go to **Settings > Simple Radio Forty Two** to configure your radio player.
2. **Multi-Station Support:** Add, remove, or reorder your favorite Icecast, SomaFM, or Radio Paradise streams.
3. **One-Click Copy:** Easily copy the [sr42_radio] shortcode from the dashboard using the integrated clipboard tool.
4. Customize the style via the provided CSS file or by adding rules in your theme.

== Usage ==

- Add the radio player to your content with the `[sr42_radio]` shortcode.

== FAQ ==

= Why is there a "Please Wait" message at startup? =
This is the Smart Buffer. It locks the interface for 5 seconds to allow the browser to properly cache the initial audio stream for a glitch-free experience.

= Does it remember my station after a page refresh? =
Yes. Starting from version 1.3.1, the player uses localStorage to keep your selection active even if you reload the page.

= Does it support mobile devices? =
Yes. The player is fully responsive and optimized for touch controls.

== Changelog ==

= 1.3.1 =
* **Fix:** Corrected the Shortcode copy tool to support modern Clipboard API and added UI feedback.
* **Fix:** Implemented station persistence (F5) via localStorage.
* **Fix:** Added default "fallback" stations if the database is empty (Radio 42, SomaFM, Radio Paradise).
* **Fix:** Resolved a regression where the selected station was reset on initial load.

= 1.3.0 =
* Way cleaner UI and overall performance optimization.
* Final stable release for WordPress 6.9.
* Integrated Icecast/SomaFM metadata (Artist/Title) via AJAX.
* Added "Laser Glow" visual effect on the volume slider.
* Synchronized initial buffer with page load cycle.

= 1.2.3 =
* Switched to pure Vanilla JS (jQuery-free).
* Added 4 predefined radio stations.
* Added Click Lock mechanism to prevent UI spamming.

= 1.2.2 =
* Fixed shortcode detection bug.
* Updated compatibility for WordPress 6.7.

= 1.0 =
* First stable version.
* Added basic radio player and customization options.

== License ==

Simple Radio Forty Two is licensed under the GPLv2 or later. See LICENSE.txt for details.

== Acknowledgments ==

Thanks to the WordPress community and the Radio 42 developers for the inspiration.
