/*
 * FLUX — Feuille de styles organisée selon les sections HTML
 * Source : actual-clean(20261108-185532).css
 * Les règles spécifiques et les surcharges sont conservées pour éviter les régressions.
 */

/* ====================================================================
   01 · Variables, typographie et règles générales
   ==================================================================== */

:root {
    --accent: #99cc99;
    --text-light: #fff;
    --danger: red;
    --border-muted: grey;
    --input-bg: #777;
}
.video-active{border:red 2px solid;}

.motactif {
    display: inline-block;
}
.motactif::first-letter {
    text-transform: uppercase;
}

h1 {
    margin: 0px;
    text-align: center;
}

h1, h2, h3 {
    font-family: "Poppins", sans-serif;
}

h3 {
    margin-top: 7px !important;
}

h4 {
    margin-top: 0;
    margin-bottom: 0;
}

.tm-col, .tm-gallery-container {
    text-align: center;
    font-size: 15px;
}

.tm-col {
    display: inline-block;
}

.tm-text-link {
    color: var(--text-light);
}

p {
    line-height: 1.4;
}

body {
    padding-top: 0;
}

/* ====================================================================
   02 · Boutons, liens et utilitaires
   ==================================================================== */

.boutonlien {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border: none;
    border-radius: 8px;
    background: #fff;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease,
        background-color 0.2s ease,
        opacity 0.2s ease;
}

.button-primary {
    background: var(--accent);
    color: #1e281e;
}

.button-primary:hover {
    filter: brightness(1.08);
}

.button:active {
    transform: translateY(1px);
}

.button:focus-visible {
    outline: 3px solid rgba(153, 204, 153, 0.45);
    outline-offset: 2px;
}

.button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.underline {
    text-decoration: underline;
}

.classvert, .classrouge {
    color: var(--accent) !important;
}

.bordervert {
    border: 1px solid var(--accent) !important;
}

.classvert2, .classrouge2 {
    text-decoration: none;
    color: var(--danger);
}

.classrouge2 {
    padding-left: 0;
}

.abonner, .desabonner {
    text-decoration: none;
}

.abonner {
    color: var(--danger);
}

.abonner:hover, .desabonner {
    color: var(--accent);
}

.desabonner:hover {
    color: var(--danger);
}

.goldener {
    background-color: gold !important;
}

.surligne {
    padding: 0 2px;
    color: var(--text-light);
    background-color: var(--accent);
}

.button-secondary {
    flex-shrink: 0;
    color: #eee;
    background: #555;
}

.button-danger {
    flex-shrink: 0;
    color: #fff;
    background: #9b2f2f;
}

.button-danger:hover {
    filter: brightness(1.08);
}

/* ====================================================================
   03 · Header, navigation et recherche
   ==================================================================== */

.top-menu {
    position:fixed;
    display: flex;
    flex-direction: column;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    background: #ffffff;
    border-bottom: 1px solid #85c99a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.top-menu nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 27px;
    height: auto;
    background: #252525;
}

.top-menu a, .top-menu button {
    text-decoration: none;
    color: #333;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
    margin-top: 0px;
    padding-right: 5px;
    padding-left: 5px;
    height: 24px;
}

.top-menu a:hover, .top-menu a.active {
    text-decoration: underline !important;
}

.top-menu form {
    height: 21px;
}

.imgdeco {
    width: 18px;
    display: inline-block;
}

.search-tags {
    position: relative;
    display: inline;
}

#keyword-search {
    width: 105px;
    padding: 3px;
    border: 1px solid #ccc;
    font-size: 15px;
    color: black;
}

#keyword-results {
    width: 175px;
    position: absolute;
    top: 42px;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    z-index: 9999;
    max-height: 250px;
    overflow-y: auto;
}

.keyword-item {
    padding: 8px 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    color: grey;
}

.keyword-item:hover {
    background: #f2f2f2;
}

.keyword-count {
    color: #777;
    font-size: 13px;
}

#logs {
    display: inline;
    text-align: center;
    width: 100%;
    top: 47px;
    position: fixed;
    background-color: white;
    z-index: 51;
    font-size: 0.8em;
}

.keyword-search {
    position: relative;
    width: 100%;
    max-width: 200px;
    margin: 5px 0;
}

#keyword-search {
    width: 100%;
    padding: 2px 10px;
    font-size: 15px;
}

#keyword-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 350px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 4px 12px #0002;
    z-index: 1000;
}

.keyword-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 9px 12px;
    border: 0;
    background: transparent;
    color: #333;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.keyword-item:hover, .keyword-item:focus {
    background: #e9f3ef;
}

.keyword-count {
    color: #888;
    margin-left: 12px;
}

.top-menu .btn-menu {
    cursor: pointer;
}

.top-menu {
    height: auto;
    flex-direction: column;
    align-items: stretch;
}

.top-menu nav {
    height: auto;
    min-height: 33px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.top-menu {
    height: auto;
    min-height: 25px;
}

/* ====================================================================
   04 · Connexion et utilisateur
   ==================================================================== */

.btn-favori {
    height: 28px;
}

.form-fluxfan {
    display: inline;
}

.btn-fluxfan-ok {
    display: inline-block;
    width: 28px;
    height: 28px;
    background-image: url("img/fav-ok2.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-color: transparent;
    border: none;
}

.btn-fluxfan-none {
    display: inline-block;
    width: 28px;
    height: 28px;
    background-image: url("img/fav-none.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-color: transparent;
    border: none;
}

#mdp, #mdp_inscription {
    width: 100%;
}

.connect {
    text-align: center;
    display: inline;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 360px;
    padding: 24px;
    background: #3a3a3a;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.auth-card h1 {
    margin: 0 0 14px;
    text-align: center;
    font-size: 32px;
    color: #b8b8b8;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.form-group label {
    font-size: 14px;
    color: #cfcfcf;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #666;
    border-radius: 8px;
    background: #f5f5f5;
    color: #222;
    font-size: 15px;
}

.form-group input:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

.auth-form button {
    margin-top: 8px;
    padding: 11px 16px;
    border: none;
    border-radius: 8px;
    background: #e9e9e9;
    color: #222;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.auth-form button:hover {
    background: #ffffff;
}

.auth-form button:active {
    transform: scale(0.98);
}

.menuuser {
    display: inline-block;
    width: 100%;
    border-bottom: 1px solid var(--text-light);
}

.menuuser span {
    display: inline-block;
    width: 25%;
    min-width: 200px;
    text-align: center;
}

.menuuser span a, .menuuser span button {
    text-decoration: underline;
}

.auth-page h1 {
    color: #99CC99;
}

.auth-page .form-group label {
    font-size: 20px;
}

/* ====================================================================
   05 · Panneau Tags et mots-clés
   ==================================================================== */

.actualtag {
    text-decoration: underline;
}

.tag-index {
    width: 100%;
    margin: 10px auto;
    font-family: "Poppins", sans-serif;
}

.tag-section {
    margin-bottom: 18px;
}

.tag-letter {
    margin: 0 0 8px;
    padding: 4px 0;
    font-size: 18px;
    font-weight: 600;
    color: #222;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 2px 0;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px!important;
    line-height: 1.6;
    text-decoration: none;
    white-space: nowrap;
    color: lightgrey;
}

.tag-icon {
    color: #99cc99;
    font-size: 11px;
    line-height: 1;
}

.tag-item:hover span {
    color: #99cc99;
}

.tag-count {
    color: lightgrey;
    font-weight: 600;
}

#tags .tag-section {
    margin-bottom: 18px;
}

#tags .tag-letter {
    color: #92d5a0;
    border-bottom: 1px solid #aaa;
    padding-bottom: .3rem;
    margin: 0 0 .7rem;
}

#tags .tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: .1rem 1.1rem;
}

#tags .tag-item {
    display: inline-flex;
    align-items: baseline;
    gap: .28rem;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    text-align: left;
}

.tag-name {
    display: inline-block;
}

.tag-name::first-letter {
    text-transform: uppercase;
}

#tags .tag-item:hover .tag-name, #tags .tag-item:focus-visible .tag-name {
    text-decoration: underline;
}

#tags .tag-item:focus-visible {
    outline: 2px solid #92d5a0;
    outline-offset: 4px;
}

#tags .tag-icon {
    color: #92d5a0;
    font-size: .65em;
}

#tags .tag-count {
    font-weight: 600;
}

/* ====================================================================
   06 · Grand menu, genres et styles
   ==================================================================== */

#menu, #flux, #home {
    margin-top: 33px;
}

#menuadd {
    border-top: 1px solid var(--text-light);
    border-bottom: 1px solid var(--text-light);
}

.menuadd2 {
    display: inline-block;
    width: 25%;
    min-width: 300px;
    vertical-align: top;
}

.menuadd2 h3 {
    margin-top: 0;
    margin-bottom: -14px;
    line-height: 2.4;
}

.style1 a, .style17 a, .style1 button, .style17 button {
    border-bottom: 1px solid yellow !important;
}

.style2 a, .style7 a, .style11 a, .style19 a, .style2 button, .style7 button, .style11 button, .style19 button {
    border-bottom: 1px solid pink !important;
}

.style3 a, .style6 a, .style16 a, .style3 button, .style6 button, .style16 button {
    border-bottom: 1px solid red !important;
}

.style4 a, .style9 a, .style20 a, .style4 button, .style9 button, .style20 button {
    border-bottom: 1px solid cyan !important;
}

.style5 a, .style5 button {
    border-bottom: 1px solid currentColor !important;
}

.style8 a, .style10 a, .style8 button, .style10 button {
    border-bottom: 1px solid indigo !important;
}

.style12 a, .style12 button {
    border-bottom: 1px solid beige !important;
}

.style13 a, .style14 a, .style18 a, .style13 button, .style14 button, .style18 button {
    border-bottom: 1px solid orange !important;
}

.style15 a, .style15 button {
    border-bottom: 1px solid green !important;
}

.liste-styles {
    list-style: none;
    padding: 0;
    margin: 0;
}

.liste-styles li {
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.liste-styles span {
    display: inline-block;
    margin: 0;
    color: #99CC99 !important;
    text-decoration: none !important;
    margin-top: 6px !important;
    font-size: 1.17em;
    font-weight: bold;
    unicode-bidi: isolate;
    font-family: "Poppins", sans-serif;
}

#menu .grand-menu-row {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 16px;
    align-items: start;
}

#menu .tm-col {
    width: auto;
    min-width: 0;
    float: none;
    max-width: none;
}

#menu .grand-menu-genre, #menu .grand-menu-flux {
    appearance: none;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: #fff;
    cursor: pointer;
}

#menu .grand-menu-genre {
    color: #85c99a;
    font-weight: bold;
}

#menu .grand-menu-flux {
    display: inline;
}

#menu .grand-menu-style {
    display: block;
    text-align: center;
    color: #85c99a;
    font-weight: bold;
}

#menu .liste-styles {
    padding-left: 0;
}

#menu .grand-menu-flux:focus-visible, #menu .grand-menu-genre:focus-visible {
    outline: 2px solid #85c99a;
    outline-offset: 3px;
}

/* ====================================================================
   07 · Lecteur principal et commandes vidéo
   ==================================================================== */

.cache1, .cache2, .cache3 {
    position: absolute;
    z-index: 2;
    width: 308px;
    height: 55px;
    color: black;
    opacity: 0.7;
}

.cache1 {
    top: 48px;
}

.cache2, .cache3 {
    top: 26px;
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#pause {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 23px;
    padding: 0;
    line-height: 1;
    cursor: pointer;
}

.tk1, .tk2 {
    position: absolute;
    z-index: 10;
    width: 100%;
    display: none;
}

.tk1 {
    height: 40px;
    margin-top: 0px;
}

.tk2 {
    top: 100%;
    float: left;
    height: 50px;
    margin-top: -162px;
}

.tk3, .tk4 {
    position: absolute;
    z-index: 10;
    width: 100%;
}

.tk3 {
    bottom: 0%;
    height: 54px;
    margin-bottom: 108px;
}

.tk4 {
    bottom: 0%;
    float: left;
    height: 40px;
    margin-bottom: 5px;
}

.tk7, .tk8, .tk9 {
    position: absolute;
    z-index: 10;
    width: 100%;
}

.tk7 {
    height: 80px;
    top: 0px;
    width: 50%;
}

.tk8 {
    bottom: 0%;
    float: left;
    height: 61px;
    margin-bottom: 5px;
}

.tk9 {
    bottom: 0%;
    height: 77px;
    margin-bottom: 86px;
    width: 184px;
    float: right;
    right: 0px;
}

.centervideo {
    width: 100%;
    height: 100%;
}

#playindex {
    width: 100%;
    position: relative;
    scroll-margin-top: 60px;
}

#playindex .yt-play, #playindex .yt-play img {
    width: 100%;
}

.ytiframe {
    width: 88%;
    aspect-ratio: 16/9;
}

#flux p {
    text-align: center;
}

#flux .fil-accueil {
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

#flux .fil-accueil:hover {
    text-decoration: underline;
}

#player {
    display: block;
    width: 100%;
    height: 23px;
    margin: 0;
    padding: 0 12px;
    box-sizing: border-box;
    background: #252525;
    color: #fff;
}

#player .player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

#player .player-controls button {
    cursor: pointer;
    font-size: 19px;
    height: 23px;
}

#player .player-controls button:disabled {
    cursor: default;
    opacity: .4;
}

#player #title {
    display: block;
    height: 23px;
    margin: 0;
    padding: 0 10px;
    line-height: 23px;
    overflow: hidden;
    font-size: 18px;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: center;
}

#player #actuallist {
    max-width: 100%;
}

#player #listeindex {
    gap: 6px;
    align-items: stretch;
}

#player #listeindex > .affiche {
    width: 20%;
    flex: 1 1 0;
    min-width: 0;
}

#player #listeindex .tm-gallery-item {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
}

#player #listeindex .titre-video-index {
    font-size: 11px;
    line-height: 1.2;
    min-height: 2.4em;
    max-height: 2.4em;
    overflow: hidden;
}

#player #listeindex .yt-play {
    width: 100%;
}

#player #listeindex img {
    width: 100%;
    max-height: 95px;
    aspect-ratio: 16/9;
    object-fit: cover;
}

#playindex, #thetitle, #playlist-gallery {
    scroll-margin-top: 250px;
}

#playindex, #thetitle, #playlist-gallery {
    scroll-margin-top: 20px;
}

/* ====================================================================
   08 · Playlists et navigation
   ==================================================================== */

.menuplaylist {
    display: inline-block;
}

.choixplaylist {
    display: inline-block;
    padding-top: 2px;
    padding-right: 6px;
    line-height: 1.4;
}

.menuplaylists {
    margin-bottom: 15px;
    text-align: center;
}

.linkplaylist {
    color: #99CC99;
    border: 1px solid #99CC99;
    border-radius: 10px;
    padding: 1px;
    display: inline-block;
}

.menuplaylists li {
    display: inline-block;
    margin: 3px;
    padding: 3px 2px 0;
    list-style: none;
    line-height: 1.3;
}

.menuplaylists li a, .menuplaylists li button {
    margin: 0 1px;
    padding: 2px;
    font-size: 1.2em;
    border: 1px solid #99cc99;
    border-radius: 8px;
    color: white;
}

#playlist-gallery, #tags-index, #tag-videos-gallery, #favorites-gallery {
    scroll-margin-top: 150px;
}

#listeindex {
    width: 100%;
    display: inline-flex;
}

#listeindex .affiche {
    width: 20%;
}

#listeindex {
    display: flex;
    gap: 12px;
    width: 100%;
    align-items: stretch;
}

#listeindex > .affiche {
    flex: 1 1 0;
    min-width: 0;
}

#listeindex .tm-gallery-item {
    width: 100%;
    margin: 0;
}

#listeindex .titre-video-index {
    display: block;
    width: 100%;
    color: inherit;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: center;
    min-height: 3.5em;
}

#listeindex .yt-play {
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    cursor: pointer;
}

#listeindex img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

#listeindex .bordervert {
    border: 1px solid #75c58b;
}

/* ====================================================================
   09 · Galerie vidéo et miniatures
   ==================================================================== */

.descriptions, .description {
    overflow-x: hidden;
    overflow-y: auto;
}

.descriptions {
    width: 100%;
    max-height: 312px;
}

.description {
    display: inline-block;
    width: 100%;
    min-height: 50px;
    max-height: 300px;
    margin-top: 5px;
    margin-bottom: 0;
    text-align: left;
}

.tm-gallery ul li {
    list-style: none;
}

.tm-gallery ul li h2, .tm-gallery ul li h2 a, .tm-gallery ul li h2 button {
    color: var(--accent) !important;
    text-decoration: none !important;
}

.tm-gallery-item {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.vfigure {
    width: 330px;
    height: auto;
    display: contents;
}

.tm-gallery figure {
    position: relative;
    z-index: 50;
    overflow: hidden;
    width: 25%;
    min-width: 330px;
    max-width: 310px;
    margin: 3px;
    text-align: center;
    border: 1px solid var(--border-muted);
    border-radius: 10px 10px 4px 4px;
}

.tm-gallery figure img {
    opacity: 1 !important;
}

.yt-play {
    min-width: 206px;
    height: 170px;
    padding: 0;
    border: none;
}

.tm-gallery-item button:not(.yt-play), .choixplaylist button {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    color: inherit;
    font: inherit;
    line-height: inherit;
    text-align: inherit;
    text-decoration: none;
    cursor: pointer;
}

.tm-gallery-item > button:not(.yt-play) {
    display: inline;
    color: white;
}

.tm-gallery-item .keyword button {
    display: inline;
    color: #99cc99;
}

.tm-gallery-item .keyword button:hover {
    text-decoration: underline;
}

/* ====================================================================
   10 · Résultats de recherche par mot-clé
   ==================================================================== */

#motscle {
    scroll-margin-top: 39px;
}

#motscle {
    border-top: 1px solid #99CC99;
    margin: 3px;
    position: relative;
}

#hautkeyword, #baskeyword {
    text-align: center;
}

#h1keyword {
    display: inline-block;
    width: 100%;
    color: #99CC99;
}

.keyword {
    font-size: 13px;
    color: grey;
}

.keyword, .keyword a, .keyword button {
    color: white;
}

.keyword a:hover {
    text-decoration: underline !important;
}

p .keyword {
    color: var(--text-light);
}

figure:hover p {
    color: var(--text-light);
}

/* ====================================================================
   11 · Configuration du compte et préférences
   ==================================================================== */

#idyoutube_playlist_clean, #url_playlist, #nomflux, #urlflux {
    background-color: var(--input-bg);
}

#idplaylist {
    width: 176px;
}

#formmenucache {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 32px;
    width: 100%;
    text-align: center;
}

#formmenucache h2, #formmenucache h3 {
    width: 100%;
    text-align: center;
}

#formmenucache .tm-col {
    order: 1;
    width: min(100%, 260px);
    vertical-align: top;
}

#formmenucache h2::after, #formmenucache h3::after {
    margin-left: auto;
    margin-right: auto;
}

#formmenucache input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

#formmenucache label {
    cursor: pointer;
}

#formmenucache .liste-styles li {
    margin-bottom: 6px;
    line-height: 1.5;
}

#formmenucache .liste-styles li label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.menucache-actions {
    order: 2;
    flex: 0 0 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

#save_menucache {
    width: auto;
    min-height: 32px;
    padding: 5px 12px;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
}

#flux-config ul li h3, #flux-config h3 a {
    color: #99CC99 !important;
}

.config-card h2 {
    margin: 0 0 20px;
    color: var(--accent);
    font-size: 1.35rem;
    text-align: left;
    text-decoration: none;
}

.config-card h2::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    margin-top: 8px;
    border-radius: 999px;
    background: var(--accent);
}

.config-page {
    width: 100%;
    padding: 80px 16px 40px;
}

.config-container {
    width: min(100%, 900px);
    margin: 0 auto;
}

.config-header {
    margin-bottom: 28px;
    text-align: center;
}

.config-header h1 {
    margin: 0 0 8px;
    color: var(--accent);
}

.config-header p {
    margin: 0;
    color: #bcbcbc;
}

.config-card {
    margin-bottom: 24px;
    padding: 24px;
    background: #3a3a3a;
    border: 1px solid #555;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.config-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.config-form > .button {
    align-self: flex-start;
}

.conf-user {
    overflow: hidden;
}

.conf-history {
    overflow: hidden;
}

.conf-history .encart-historique ul, .conf-fan .config-list ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.conf-history .encart-historique li, .conf-fan .config-list li {
    padding: 6px 10px;
    font-size: 0.95rem;
    line-height: 1.5;
    background: #333;
    border: 1px solid #555;
    border-radius: 10px;
    color: #e8e8e8;
}

.conf-history .encart-historique strong {
    color: var(--accent);
    font-weight: 700;
}

.conf-history .encart-historique a, .conf-fan .config-list a, .conf-history .encart-historique button, .conf-fan .config-list button {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.conf-history .encart-historique a:hover, .conf-fan .config-list a:hover {
    color: #1e281e;
    background: var(--accent);
    border-color: var(--accent);
    text-decoration: none;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-field label {
    color: #e2e2e2;
    font-weight: 600;
}

.form-field input, .form-field select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #666;
    border-radius: 8px;
    background: #f5f5f5;
    color: #222;
    font: inherit;
}

.form-field input::placeholder {
    color: #777;
}

.form-field input:focus, .form-field select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(153, 204, 153, 0.2);
}

.field-help {
    color: #aaa;
    font-size: 0.82rem;
}

.config-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.config-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px;
    border: 1px solid #555;
    border-radius: 10px;
    background: #333;
}

.config-list-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.config-list-title {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.config-list-title:hover {
    text-decoration: underline;
}

.config-list-meta {
    color: #aaa;
    font-size: 0.85rem;
}

.config-list-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.config-inline-form {
    display: inline-flex;
    margin: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-alert {
    margin-bottom: 24px;
    padding: 13px 15px;
    border-radius: 9px;
    line-height: 1.5;
}

.form-alert-error {
    color: #ffdede;
    background: rgba(180, 35, 35, 0.2);
    border: 1px solid rgba(255, 100, 100, 0.55);
}

.config-empty {
    margin: 0;
    padding: 14px;
    color: #bbb;
    background: #333;
    border: 1px dashed #666;
    border-radius: 9px;
}

/* ====================================================================
   12 · Autres éléments et compatibilité
   ==================================================================== */

#flux, #flux-keyword {
    border-top: none;
}

/* ====================================================================
   13 · Responsive / Media queries
   ==================================================================== */

@media (max-width: 760px) {
    .auth-page {
        flex-direction: column;
        align-items: stretch;
    }
    .auth-card {
        max-width: none;
    }
}

@media (max-width: 1200px) {
    .tm-content {
        padding-left: 4px;
        padding-right: 4px;
    }
}

@media (max-width: 680px) {
    #formmenucache {
        gap: 16px;
    }
    #formmenucache .tm-col {
        width: 100%;
        padding: 12px;
    }
}

@media (max-width: 680px) {
    .config-form > .button {
        width: 100%;
    }
}

@media (max-width: 680px) {
    .menuplaylists li {
        padding: 0px !important;
        margin: 0px !important;
        line-height: 1.5 !important;
    }
    .menuplaylists li a {
        font-size: 0.9em !important;
    }
    .config-page {
        padding: 70px 10px 30px;
    }
    .config-card {
        padding: 18px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .config-list-item {
        align-items: stretch;
        flex-direction: column;
    }
    .config-list-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    .config-inline-form {
        width: 100%;
    }
    .config-list-item .button {
        width: 100%;
    }
}

@media (max-width:600px) {
    #player {
        max-height: 175px;
    }
    #player #listeindex img {
        max-height: 60px;
    }
}

@media (max-width:1050px) {
    #menu .grand-menu-row {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (max-width:600px) {
    #menu .grand-menu-row {
        grid-template-columns: minmax(0,1fr);
    }
}

@media (max-width: 650px) {
    #listeindex {
        gap: 4px;
    }
    #listeindex .titre-video-index {
        font-size: 11px;
    }
}

.playlist-origine .linkplaylist{
    border: 1px solid #9c9!important;
    border-radius: 8px!important;
    padding: 2px!important;
    margin: 1px!important;
    color: white!important;
}
/* Mot-clé sélectionné dans les résultats de recherche (parent et variantes). */
#motscle .tm-gallery-item .keyword button.actualtag {
    color: #b8efae;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
