<h1 align="center">🎬 ElegantFin Cinema Edition</h1>

<p align="center">
  <img src="https://img.shields.io/github/v/release/ElieMFR/ElegantFin?label=version&color=red&cacheSeconds=3600" alt="Version">
  <img src="https://img.shields.io/badge/Jellyfin-12.x-blueviolet" alt="Jellyfin">
  <img src="https://img.shields.io/badge/platform-Desktop%20%7C%20Mobile%20%7C%20TV-green" alt="Platforms">
  <a href="https://github.com/lscambo13/ElegantFin"><img src="https://img.shields.io/badge/based%20on-ElegantFin%20v26.09.05-blue" alt="Based on ElegantFin"></a>
  <img src="https://img.shields.io/badge/license-GPL--2.0-green" alt="License">
  <a href="https://www.jsdelivr.com/package/gh/ElieMFR/ElegantFin"><img src="https://img.shields.io/jsdelivr/gh/hm/ElieMFR/ElegantFin?label=CDN%20hits&color=orange" alt="jsDelivr"></a>
  <img src="https://img.shields.io/github/release-date/ElieMFR/ElegantFin?color=orange&cacheSeconds=3600" alt="Last release">
</p>

<p align="center">
  <b>A streaming-inspired Jellyfin theme, on PC, mobile and TV.</b><br>
  <i>Un thème Jellyfin inspiré du streaming, sur PC, téléphone et TV.</i>
</p>

---

<p align="center">
  <b>🌐 Language / Langue</b><br>
  <a href="#english">English</a> | <a href="#français">Français</a>
</p>

---

<a name="english"></a>
# English

ElegantFin Cinema Edition is a Jellyfin theme inspired by streaming platforms, based on [ElegantFin](https://github.com/lscambo13/ElegantFin) by [lscambo13](https://github.com/lscambo13). One line of CSS on the server, and every device that loads it gets it: PC, phone and TV.

> 📖 **Version history:** see [GitHub Releases](https://github.com/ElieMFR/ElegantFin/releases) for what's new in each version, and [`RELEASE_NOTES.md`](./RELEASE_NOTES.md) for every detail.

## 📑 Table of Contents

- [✨ Key Features](#-key-features)
- [📦 Installation](#-installation)
- [⚙️ Customization](#️-customization)
- [📱 Compatibility](#-compatibility)
- [🔌 Supported Plugins](#-supported-plugins)
- [❓ Troubleshooting](#-troubleshooting)
- [🔔 Recommended Plugin](#-recommended-plugin)
- [👥 Authors & Credits](#-authors--credits)

## ✨ Key Features

*   **Made for Jellyfin 12**: the new PC and phone interface gets the full look, with library pills in the top bar and the theme's purple instead of Jellyfin blue.
*   **Detail pages**: full-screen backdrops, title logos, a white Play button, media info in clean panels.
*   **Cards**: rounded posters, a light zoom on hover, glass badges, a soft veil on what you've already watched.
*   **TV**: a clear white focus on every control, no blur, no looping animations. The home tabs never slide under the header icons.
*   **Phones**: rows that stop on a card, readable in portrait and landscape.
*   **Details**: glass dialogs and menus, a modern player bar, thin scrollbars.
*   **Plugins**: dedicated styling for Jellyfin Enhanced, Media Carousel and Editor's Choice.
*   **Fonts included**: Inter and Material Icons ship with the theme, nothing is loaded from Google.
*   **Older devices and reduced motion**: fallbacks are provided for old TVs and browsers (not verified with every release), and most animations switch off when the system asks for reduced motion.

## 📦 Installation

> [!IMPORTANT]
> **Requirements:**
> * Jellyfin **12.x**
>
> Installed on the server, the theme reaches every client that loads the server's custom CSS, including TV apps based on the web interface.

### Steps
1.  Open the **Dashboard** from the avatar menu, top right.
2.  Go to **Branding** and scroll down to **Custom CSS code**.
3.  Paste this line, then click **Save**:
    ```css
    @import url("https://cdn.jsdelivr.net/gh/ElieMFR/ElegantFin@main/Theme/ElegantFin-jellyfin-theme-build-latest-minified.css");
    ```
4.  Reload the page (`Ctrl+F5`). On a TV, close and reopen the Jellyfin app.

**For your account, on one device only:** paste the same line in **Settings → Display → Custom CSS code**, then click **Save**. It isn't synced to your other devices.

### 📌 Pin a version

`@main` always follows the latest version. To update when you choose, replace `@main` with a version number:

```css
@import url("https://cdn.jsdelivr.net/gh/ElieMFR/ElegantFin@1.5.12/Theme/ElegantFin-jellyfin-theme-build-latest-minified.css");
```

A pinned version never changes. It is also the fastest way to update a TV app that keeps the old file in cache.

### 🗑️ Uninstall

Delete the `@import` line, click **Save**, then reload (`Ctrl+F5`, or reopen the app on a TV).

## ⚙️ Customization

Most of these options come from the original ElegantFin. Add them **after** the import line:

```css
:root {
    --clearLogoVisibility: none;
}
```

| Option | Variable | Values |
|--------|----------|--------|
| **Login background** | `--loginPageBgUrl` | `url("your-server/Branding/Splashscreen...")` |
| **Login title** | `--loginPageText` | Follows the Jellyfin language (English, French) / your own text, e.g. `"Welcome"` |
| **Play button on cards** | `--overlayPlayButtonPosition` | `50%` (center) / `-999em` (hidden, default) |
| **Card hover effect** | `--cardHoverEffect` | `""` (on) / `none` (off, default) |
| **Library labels** | `--libraryLabelVisibility` | `block` / `none` (default) |
| **Watched and favorite buttons on cards (PC)** | `--extraCardButtonsVisibility` | `none` (hidden, default) / `block` |
| **Top bar height (TV)** | `--appBarHeight` | `5em` (default) or another height |
| **Original title** | `--itemOriginalTitleVisibility` | `block` / `none` |
| **Title logo** | `--clearLogoVisibility` | `block` / `none` |
| **Critics rating on phones** | `--criticsRatingVisibility` | `none` (hidden, default) / `block` |
| **Icons (LG TV)** | `--iconPack` | `'Material Icons'` |
| **Jellyfin Enhanced tabs (PC and phone)** | `--jeTabsVisibility` | `inline-flex` (tabs under the bar) / `none` (icons at the top right) |

## 📱 Compatibility

| Platform | Status |
|----------|--------|
| **Jellyfin 12** | Target |
| **Chrome, Edge, Firefox** | Supported |
| **Safari** | Should work, not tested |
| **Jellyfin Android app** | Supported |
| **Samsung Tizen** (community app) | Supported, tested on a real TV |
| **Android TV apps based on the Jellyfin web interface** | Supported, tested on an Android TV box |
| **LG webOS** | Should work, not tested (may need the icon option) |
| **Jellyfin Desktop** (formerly Jellyfin Media Player) | Not tested |
| **Native Android TV app** | Not supported: it doesn't load custom CSS |

## 🔌 Supported Plugins

| Plugin | What it does | Theme styling |
|--------|--------------|---------------|
| [**Jellyfin Enhanced**](https://github.com/n00bcodr/Jellyfin-Enhanced) | Shortcuts, Seerr requests, reviews, extra links | Letterboxd and Seerr icons inline, "where to watch" bar, badges and active streams button in the theme's colours |
| [**Media Carousel**](https://github.com/peterdu1109/MediaCarousel) | Home rows: server Top 10, worldwide Top 10, Seerr requests | Row arrows centred on the posters |
| [**Editor's Choice**](https://github.com/lachlandcp/jellyfin-editors-choice-plugin) | Curated picks on the home page | Banner spacing, readable description, working controls |

Other plugins keep their own look.

## ❓ Troubleshooting

| Issue | Solution |
|-------|----------|
| **The theme doesn't show** | The `@import` line must be the **first** line of the field. Click **Save**, then `Ctrl+F5`. |
| **It shows on some devices only** | On the device without the theme, in **Settings → Display**, untick **Disable server-provided custom CSS code**, then click **Save**. |
| **The Dashboard keeps its usual look** | Normal: Jellyfin doesn't load custom CSS on the Dashboard. |
| **A TV still shows the old version** | Close and reopen the app. If the old version stays (a device may keep the file for up to 7 days), [pin a version](#-pin-a-version). |
| **`@main` hasn't updated yet** | The CDN can take up to 12 hours, and a device that already loaded the file may keep it for up to 7 days. Pin the new version to get it right away. |
| **Square icons on an LG TV** | Add `--iconPack: 'Material Icons';` in a `:root { }` block after the import. |
| **No arrows on the home tabs in Firefox** | Normal: these arrows need a recent Chrome or Edge. Firefox keeps a thin scrollbar. |
| **A plugin doesn't match the rest** | Only the [plugins listed above](#-supported-plugins) are styled. Open an issue to suggest one. |

## 🔔 Recommended Plugin

ElegantFin Cinema Edition goes well with [**NotifySync**](https://github.com/ElieMFR/NotifySync), a notification bell for Jellyfin.

## 👥 Authors & Credits

- **Original theme:** [ElegantFin](https://github.com/lscambo13/ElegantFin) by [lscambo13](https://github.com/lscambo13)
- **Cinema Edition:** [ElieMFR](https://github.com/ElieMFR)
- **Styles adapted from:** [elegantfin-jf12](https://github.com/mihaif7/elegantfin-jf12) by mihaif7 (GPL-2.0)
- **Fonts:** [Inter](./Theme/fonts/LICENSE-Inter-OFL.txt) (SIL OFL 1.1) and [Material Icons Round](./Theme/fonts/LICENSE-MaterialIconsRound-Apache-2.0.txt) (Apache 2.0)

Bug reports and suggestions are welcome on [GitHub](https://github.com/ElieMFR/ElegantFin/issues).

Released under the [GPL-2.0 License](./LICENSE), like the original theme.

---

<a name="français"></a>
# Français

ElegantFin Cinema Edition est un thème Jellyfin inspiré des plateformes de streaming, basé sur [ElegantFin](https://github.com/lscambo13/ElegantFin) de [lscambo13](https://github.com/lscambo13). Une ligne de CSS sur le serveur, et tous les appareils qui le chargent en profitent : PC, téléphone et TV.

> 📖 **Historique des versions :** voir les [Releases GitHub](https://github.com/ElieMFR/ElegantFin/releases) pour les nouveautés de chaque version, et [`RELEASE_NOTES.md`](./RELEASE_NOTES.md) pour tous les détails.

## 📑 Sommaire

- [✨ Fonctionnalités](#-fonctionnalités)
- [📦 Installation](#-installation-1)
- [⚙️ Personnalisation](#️-personnalisation)
- [📱 Compatibilité](#-compatibilité)
- [🔌 Plugins pris en charge](#-plugins-pris-en-charge)
- [❓ Dépannage](#-dépannage)
- [🔔 Plugin recommandé](#-plugin-recommandé)
- [👥 Auteurs & Crédits](#-auteurs--crédits)

## ✨ Fonctionnalités

*   **Pensé pour Jellyfin 12** : la nouvelle interface PC et mobile reçoit tout l'habillage du thème, avec les pastilles de bibliothèques dans la barre du haut et le violet du thème au lieu du bleu Jellyfin.
*   **Fiches** : images de fond en plein écran, logos des titres, bouton Lire blanc, infos média dans des panneaux nets.
*   **Cartes** : affiches arrondies, léger zoom au survol, pastilles en verre, voile discret sur ce que vous avez déjà vu.
*   **TV** : un focus blanc bien visible sur chaque élément, ni flou ni animations en boucle. Les onglets de l'accueil ne passent jamais sous les icônes de l'en-tête.
*   **Téléphone** : rangées qui s'arrêtent sur une carte, lisibles en portrait comme en paysage.
*   **Détails** : fenêtres et menus en verre, barre du lecteur moderne, barres de défilement fines.
*   **Plugins** : un habillage dédié pour Jellyfin Enhanced, Media Carousel et Editor's Choice.
*   **Polices incluses** : Inter et Material Icons sont livrées avec le thème, rien n'est chargé depuis Google.
*   **Anciens appareils et mouvement réduit** : des replis sont prévus pour les anciennes TV et les vieux navigateurs (non vérifiés à chaque version), et la plupart des animations se coupent quand le système demande moins de mouvement.

## 📦 Installation

> [!IMPORTANT]
> **Prérequis :**
> * Jellyfin **12.x**
>
> Installé sur le serveur, le thème atteint tous les clients qui chargent le CSS du serveur, dont les applis TV basées sur l'interface web.

### Étapes
1.  Ouvrez le **Tableau de bord** depuis le menu de l'avatar, en haut à droite.
2.  Allez dans **Slogan** (c'est le nom de la page Branding en français), puis descendez jusqu'à **Code CSS personnalisé**.
3.  Collez cette ligne, puis cliquez sur **Sauvegarder** :
    ```css
    @import url("https://cdn.jsdelivr.net/gh/ElieMFR/ElegantFin@main/Theme/ElegantFin-jellyfin-theme-build-latest-minified.css");
    ```
4.  Rechargez la page (`Ctrl+F5`). Sur une TV, fermez puis rouvrez l'appli Jellyfin.

**Pour votre compte, sur un seul appareil :** collez la même ligne dans **Paramètres → Affichage → Code CSS personnalisé**, puis cliquez sur **Sauvegarder**. Elle n'est pas synchronisée avec vos autres appareils.

### 📌 Figer une version

`@main` suit toujours la dernière version. Pour mettre à jour quand vous le décidez, remplacez `@main` par un numéro de version :

```css
@import url("https://cdn.jsdelivr.net/gh/ElieMFR/ElegantFin@1.5.12/Theme/ElegantFin-jellyfin-theme-build-latest-minified.css");
```

Une version figée ne change jamais. C'est aussi le moyen le plus rapide de mettre à jour une appli TV qui garde l'ancien fichier en cache.

### 🗑️ Désinstaller

Supprimez la ligne `@import`, cliquez sur **Sauvegarder**, puis rechargez (`Ctrl+F5`, ou rouvrez l'appli sur une TV).

## ⚙️ Personnalisation

La plupart de ces options viennent d'ElegantFin d'origine. Ajoutez-les **après** la ligne d'import :

```css
:root {
    --clearLogoVisibility: none;
}
```

| Option | Variable | Valeurs |
|--------|----------|---------|
| **Fond de la page de connexion** | `--loginPageBgUrl` | `url("votre-serveur/Branding/Splashscreen...")` |
| **Titre de la page de connexion** | `--loginPageText` | Suit la langue de Jellyfin (anglais, français) / votre texte, par ex. `"Bienvenue"` |
| **Bouton Lire sur les cartes** | `--overlayPlayButtonPosition` | `50%` (centré) / `-999em` (masqué, par défaut) |
| **Effet au survol des cartes** | `--cardHoverEffect` | `""` (activé) / `none` (désactivé, par défaut) |
| **Noms des bibliothèques** | `--libraryLabelVisibility` | `block` / `none` (par défaut) |
| **Boutons vu et favori sur les cartes (PC)** | `--extraCardButtonsVisibility` | `none` (masqués, par défaut) / `block` |
| **Hauteur de la barre du haut (TV)** | `--appBarHeight` | `5em` (par défaut) ou une autre hauteur |
| **Titre original** | `--itemOriginalTitleVisibility` | `block` / `none` |
| **Logo du titre** | `--clearLogoVisibility` | `block` / `none` |
| **Note critique sur téléphone** | `--criticsRatingVisibility` | `none` (masquée, par défaut) / `block` |
| **Icônes (TV LG)** | `--iconPack` | `'Material Icons'` |
| **Onglets Jellyfin Enhanced (PC et téléphone)** | `--jeTabsVisibility` | `inline-flex` (onglets sous la barre) / `none` (icônes en haut à droite) |

## 📱 Compatibilité

| Plateforme | État |
|------------|------|
| **Jellyfin 12** | Cible |
| **Chrome, Edge, Firefox** | Pris en charge |
| **Safari** | Devrait fonctionner, non testé |
| **Appli Android Jellyfin** | Prise en charge |
| **Samsung Tizen** (appli communautaire) | Prise en charge, testée sur une vraie TV |
| **Applis Android TV basées sur l'interface web de Jellyfin** | Prises en charge, testées sur une box Android TV |
| **LG webOS** | Devrait fonctionner, non testé (l'option icônes peut être nécessaire) |
| **Jellyfin Desktop** (ex-Jellyfin Media Player) | Non testé |
| **Appli native Android TV** | Non prise en charge : elle ne charge pas de CSS personnalisé |

## 🔌 Plugins pris en charge

| Plugin | Ce qu'il fait | Habillage du thème |
|--------|---------------|--------------------|
| [**Jellyfin Enhanced**](https://github.com/n00bcodr/Jellyfin-Enhanced) | Raccourcis, demandes Seerr, avis, liens supplémentaires | Icônes Letterboxd et Seerr alignées, bandeau « où regarder », badges et bouton des lectures en cours aux couleurs du thème |
| [**Media Carousel**](https://github.com/peterdu1109/MediaCarousel) | Rangées d'accueil : Top 10 du serveur, Top 10 mondial, demandes Seerr | Flèches des rangées centrées sur les affiches |
| [**Editor's Choice**](https://github.com/lachlandcp/jellyfin-editors-choice-plugin) | Sélection éditoriale sur l'accueil | Espacement de la bannière, résumé lisible, contrôles fonctionnels |

Les autres plugins gardent leur propre apparence.

## ❓ Dépannage

| Problème | Solution |
|----------|----------|
| **Le thème ne s'affiche pas** | La ligne `@import` doit être la **première** du champ. Cliquez sur **Sauvegarder**, puis `Ctrl+F5`. |
| **Il ne s'affiche que sur certains appareils** | Sur l'appareil sans thème, dans **Paramètres → Affichage**, décochez **Désactiver le code CSS personnalisé fourni par le serveur**, puis cliquez sur **Sauvegarder**. |
| **Le tableau de bord garde son apparence habituelle** | Normal : Jellyfin n'y charge pas le CSS personnalisé. |
| **Une TV affiche encore l'ancienne version** | Fermez puis rouvrez l'appli. Si l'ancienne version reste (un appareil peut garder le fichier jusqu'à 7 jours), [figez une version](#-figer-une-version). |
| **`@main` n'est pas encore à jour** | Le CDN peut mettre jusqu'à 12 heures, et un appareil qui a déjà chargé le fichier peut le garder jusqu'à 7 jours. Figez la nouvelle version pour l'avoir tout de suite. |
| **Icônes carrées sur une TV LG** | Ajoutez `--iconPack: 'Material Icons';` dans un bloc `:root { }` après l'import. |
| **Pas de flèches sur les onglets de l'accueil dans Firefox** | Normal : ces flèches demandent un Chrome ou un Edge récent. Firefox garde une fine barre de défilement. |
| **Un plugin ne ressemble pas au reste** | Seuls les [plugins listés plus haut](#-plugins-pris-en-charge) sont habillés. Ouvrez une issue pour en proposer un. |

## 🔔 Plugin recommandé

ElegantFin Cinema Edition va bien avec [**NotifySync**](https://github.com/ElieMFR/NotifySync), une cloche de notifications pour Jellyfin.

## 👥 Auteurs & Crédits

- **Thème original :** [ElegantFin](https://github.com/lscambo13/ElegantFin) de [lscambo13](https://github.com/lscambo13)
- **Édition Cinéma :** [ElieMFR](https://github.com/ElieMFR)
- **Styles adaptés de :** [elegantfin-jf12](https://github.com/mihaif7/elegantfin-jf12) de mihaif7 (GPL-2.0)
- **Polices :** [Inter](./Theme/fonts/LICENSE-Inter-OFL.txt) (SIL OFL 1.1) et [Material Icons Round](./Theme/fonts/LICENSE-MaterialIconsRound-Apache-2.0.txt) (Apache 2.0)

Signalements de bugs et suggestions bienvenus sur [GitHub](https://github.com/ElieMFR/ElegantFin/issues).

Distribué sous [licence GPL-2.0](./LICENSE), comme le thème d'origine.
