/* Photos et vidéos d'un match */
.tnk-gal__grille { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(46%, 180px), 1fr)); }
.tnk-gal__item { position: relative; display: block; aspect-ratio: 1; padding: 0; overflow: hidden; border: 1px solid #1d2026; border-radius: 10px; background: #0d0f13; cursor: zoom-in; }
.tnk-gal__item img, .tnk-gal__item video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; pointer-events: none; }
.tnk-gal__item:hover img, .tnk-gal__item:hover video { transform: scale(1.05); }
.tnk-gal__item:focus-visible { outline: 2px solid #daf37c; outline-offset: 2px; }
.tnk-gal__lecture { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(transparent 55%, rgba(0, 0, 0, .45)); }
.tnk-gal__lecture i { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(10, 12, 15, .7); border: 2px solid #daf37c; color: #daf37c; font-size: 2rem; padding-left: 4px; backdrop-filter: blur(4px); }

/* Envoi (admin) */
.tnk-gal__envoi { margin-top: 16px; }
.tnk-gal__zone { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 24px 16px; text-align: center; border: 1px dashed #3a3f47; border-radius: 12px; background: #0d0f13; cursor: pointer; transition: border-color .2s, background .2s; }
.tnk-gal__zone:hover, .tnk-gal__zone.is-survol { border-color: #daf37c; background: rgba(218, 243, 124, .05); }
.tnk-gal__zone i { font-size: 2.2rem; color: #daf37c; }
.tnk-gal__zone strong { color: #fff; font-size: 1rem; }
.tnk-gal__zone small { color: #9da1a8; font-size: .84rem; max-width: 460px; }
.tnk-gal__envois { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.tnk-gal__envois li { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 10px 14px; border: 1px solid #1d2026; border-radius: 10px; background: #0d0f13; font-size: .88rem; color: #c9ccd1; }
.tnk-gal__envois li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tnk-gal__envois li em { font-style: normal; font-weight: 700; color: #9da1a8; }
.tnk-gal__envois li.is-ok em { color: #daf37c; }
.tnk-gal__envois li.is-erreur { border-color: rgba(194, 81, 81, .5); }
.tnk-gal__envois li.is-erreur em { color: #e38585; white-space: normal; }
.tnk-gal__jauge { grid-column: 1 / -1; height: 4px; border-radius: 999px; background: #1d2026; overflow: hidden; }
.tnk-gal__jauge b { display: block; height: 100%; width: 0; background: #daf37c; transition: width .2s; }

/* Visionneuse */
.tnk-visio { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5, 6, 8, .96); color: #fff; overflow: hidden; }
.tnk-visio::backdrop { background: rgba(0, 0, 0, .85); }
.tnk-visio[open] { display: block; }
.tnk-visio__media { position: absolute; inset: 0 0 64px; display: grid; place-items: center; padding: 12px; touch-action: pan-y; }
.tnk-visio__media img, .tnk-visio__media video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; background: #000; }
.tnk-visio__nav { position: absolute; top: calc(50% - 32px); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid #2a2e35; background: rgba(13, 15, 19, .8); color: #fff; font-size: 1.8rem; cursor: pointer; }
.tnk-visio__nav:hover { border-color: #daf37c; color: #daf37c; }
.tnk-visio__nav--prec { left: 14px; }
.tnk-visio__nav--suiv { right: 14px; }
.tnk-visio__nav[hidden] { display: none; }
.tnk-visio__barre { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-top: 1px solid #1d2026; background: #0a0c0f; }
.tnk-visio__compteur { margin-right: auto; color: #9da1a8; font-weight: 700; font-size: .9rem; }
.tnk-visio__btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid #2a2e35; background: #0d0f13; color: #fff; font: 600 .9rem 'Barlow', system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.tnk-visio__btn i { font-size: 1.25rem; }
.tnk-visio__btn:hover { border-color: #daf37c; color: #daf37c; }
.tnk-visio__btn--danger:hover { border-color: #c25151; color: #e38585; }
@media (max-width: 600px) {
    .tnk-visio__nav { width: 40px; height: 40px; }
    .tnk-visio__btn span { display: none; }
    .tnk-visio__btn { padding: 0 11px; }
}

/* Durée sur les vignettes vidéo */
.tnk-gal__duree { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 6px; background: rgba(10, 12, 15, .82); color: #fff; font: 700 .76rem 'Barlow', system-ui, sans-serif; font-variant-numeric: tabular-nums; }

/* Lecteur vidéo */
.tnk-visio__media .tnk-lect { position: relative; width: min(100%, 1280px); max-height: 100%; aspect-ratio: 16 / 9; display: grid; place-items: center; background: #000; border-radius: 10px; overflow: hidden; outline: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.tnk-lect video { width: 100%; height: 100%; object-fit: contain; background: #000; border-radius: 0; cursor: pointer; }
.tnk-lect:fullscreen { width: 100vw; height: 100vh; max-height: none; border-radius: 0; aspect-ratio: auto; }
.tnk-lect:-webkit-full-screen { width: 100vw; height: 100vh; max-height: none; border-radius: 0; }
.tnk-lect.is-erreur .tnk-lect__barre, .tnk-lect.is-erreur .tnk-lect__grand { display: none; }

.tnk-lect__grand { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.9); display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; border: 2px solid #daf37c; background: rgba(10, 12, 15, .65); color: #daf37c; font-size: 2.8rem; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; backdrop-filter: blur(6px); }
.tnk-lect__grand i { padding-left: 5px; }
.tnk-lect.is-fini .tnk-lect__grand i { padding-left: 0; }
.tnk-lect.is-pause:not(.is-chargement) .tnk-lect__grand { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.tnk-lect__grand:hover { background: #daf37c; color: #0a0c0f; }

.tnk-lect__spinner { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .15); border-top-color: #daf37c; animation: tnk-lect-tourne .8s linear infinite; opacity: 0; pointer-events: none; transition: opacity .2s; }
.tnk-lect.is-chargement:not(.is-pause) .tnk-lect__spinner { opacity: 1; }
@keyframes tnk-lect-tourne { to { transform: rotate(360deg); } }

.tnk-lect__saut { position: absolute; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 18px 22px; border-radius: 999px; background: rgba(10, 12, 15, .55); color: #fff; font-weight: 700; font-size: .85rem; opacity: 0; pointer-events: none; }
.tnk-lect__saut i { font-size: 1.8rem; color: #daf37c; }
.tnk-lect__saut--g { left: 8%; }
.tnk-lect__saut--d { right: 8%; }
.tnk-lect__saut.is-visible { animation: tnk-lect-saut .6s ease; }
@keyframes tnk-lect-saut { 0% { opacity: 0; } 20% { opacity: 1; } 100% { opacity: 0; } }

.tnk-lect__info { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; background: rgba(10, 12, 15, .8); color: #fff; font-weight: 700; font-size: .9rem; opacity: 0; pointer-events: none; transition: opacity .2s; }
.tnk-lect__info.is-visible { opacity: 1; }

.tnk-lect__barre { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.tnk-lect.is-actif .tnk-lect__barre, .tnk-lect.is-pause .tnk-lect__barre, .tnk-lect:focus-within .tnk-lect__barre:focus-within { opacity: 1; transform: none; }
.tnk-lect:not(.is-actif):not(.is-pause) { cursor: none; }

.tnk-lect__progression { position: relative; height: 18px; display: flex; align-items: center; }
.tnk-lect__progression::before { content: ''; position: absolute; left: 0; right: 0; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .22); }
.tnk-lect__charge, .tnk-lect__lu { position: absolute; left: 0; height: 4px; border-radius: 999px; width: 0; pointer-events: none; transition: height .15s; }
.tnk-lect__charge { background: rgba(255, 255, 255, .4); }
.tnk-lect__lu { background: #daf37c; }
.tnk-lect__progression:hover::before, .tnk-lect__progression:hover .tnk-lect__charge, .tnk-lect__progression:hover .tnk-lect__lu { height: 6px; }
.tnk-lect__progression input { position: absolute; inset: 0; width: 100%; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.tnk-lect__progression input::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #daf37c; border: 0; box-shadow: 0 0 0 4px rgba(218, 243, 124, .25); }
.tnk-lect__progression input::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #daf37c; border: 0; }
.tnk-lect__progression input::-moz-range-track { background: transparent; }
.tnk-lect__bulle { position: absolute; bottom: 20px; transform: translateX(-50%); padding: 3px 8px; border-radius: 6px; background: #0a0c0f; border: 1px solid #2a2e36; color: #fff; font: 700 .78rem 'Barlow', system-ui, sans-serif; font-variant-numeric: tabular-nums; pointer-events: none; white-space: nowrap; }

.tnk-lect__commandes { display: flex; align-items: center; gap: 2px; margin-top: 4px; }
.tnk-lect__btn { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 6px; border: 0; border-radius: 8px; background: none; color: #fff; font: 800 .9rem 'Barlow', system-ui, sans-serif; cursor: pointer; }
.tnk-lect__btn i { font-size: 1.45rem; }
.tnk-lect__btn:hover, .tnk-lect__btn:focus-visible { color: #daf37c; background: rgba(255, 255, 255, .08); outline: none; }
.tnk-lect__btn.is-on { color: #daf37c; }
.tnk-lect__son { display: inline-flex; align-items: center; }
.tnk-lect__volume { width: 0; opacity: 0; margin: 0; transition: width .2s, opacity .2s, margin .2s; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 999px; background: linear-gradient(90deg, #daf37c var(--p, 100%), rgba(255, 255, 255, .25) var(--p, 100%)); cursor: pointer; }
.tnk-lect__son:hover .tnk-lect__volume, .tnk-lect__volume:focus { width: 80px; opacity: 1; margin: 0 8px 0 2px; }
.tnk-lect__volume::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.tnk-lect__volume::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 0; }
.tnk-lect__temps { margin-left: 6px; color: #e6e8eb; font: 600 .86rem 'Barlow', system-ui, sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tnk-lect__espace { flex: 1; }
.tnk-lect__vitesse { min-width: 46px; }
.tnk-visio__erreur { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: 420px; background: rgba(10, 12, 15, .92); }

@media (max-width: 600px) {
    .tnk-visio__media .tnk-lect { border-radius: 0; }
    .tnk-lect__son .tnk-lect__volume, .tnk-lect__btn[data-l="moins10"], .tnk-lect__btn[data-l="plus10"], .tnk-lect__btn[data-l="pip"] { display: none; }
    .tnk-lect__btn { min-width: 34px; height: 34px; }
    .tnk-lect__temps { font-size: .8rem; }
}
@media (hover: none) { .tnk-lect__volume { display: none; } }

/* Vidéos des buts (importées de LE FIVE) */
.tnk-gal__legende { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; align-items: baseline; gap: 5px; padding: 4px 8px; border-radius: 7px; background: rgba(10, 12, 15, .85); color: #fff; font: 600 .8rem 'Barlow', system-ui, sans-serif; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tnk-gal__legende b { color: #daf37c; font-weight: 800; }
.tnk-gal__legende small { margin-left: auto; color: #9da1a8; font-weight: 700; }
.tnk-gal__item--adv .tnk-gal__legende b { color: #e38585; }
.tnk-gal__item--but .tnk-gal__duree { top: 8px; bottom: auto; }
.tnk-gal__item[hidden] { display: none; }
.tnk-gal__complet { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tnk-gal__btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; border: 1px solid #daf37c; background: #daf37c; color: #0a0c0f !important; font: 700 .9rem 'Barlow', system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.tnk-gal__btn i { font-size: 1.2rem; }
.tnk-gal__btn--ghost { background: transparent; color: #fff !important; border-color: #2a2e36; }
.tnk-gal__btn--ghost:hover { border-color: #daf37c; color: #daf37c !important; }
.tnk-gal__filtres { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tnk-gal__filtres button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid #2a2e36; background: none; color: #c9ccd1; font: 700 .85rem 'Barlow', system-ui, sans-serif; cursor: pointer; }
.tnk-gal__filtres button span { color: #6b6f77; }
.tnk-gal__filtres button[aria-pressed="true"] { border-color: #daf37c; background: rgba(218, 243, 124, .12); color: #daf37c; }
.tnk-gal__corriger { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; padding: 7px 14px; border: 1px dashed #2a2e36; border-radius: 999px; color: #daf37c; font: 700 .85rem 'Barlow', system-ui, sans-serif; text-decoration: none; }
.tnk-gal__corriger:hover { border-color: #daf37c; }
/* Match complet sur YouTube (dans la visionneuse) */
.tnk-visio__yt { width: min(100%, 1280px); max-height: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; background: #000; }
.tnk-visio__btn[hidden], .tnk-visio__nav[hidden] { display: none; }
.tnk-gal__btn small { font-weight: 600; opacity: .75; }
.tnk-yt__form { margin: 16px 0 12px; padding: 14px; border: 1px dashed #2a2e36; border-radius: 14px; }
.tnk-yt__form label { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; color: #fff; font-weight: 700; }
.tnk-yt__form label i { color: #ff4e45; font-size: 1.3rem; }
.tnk-yt__form label small { color: #6b6f77; font-weight: 500; }
.tnk-yt__ligne { display: flex; gap: 8px; flex-wrap: wrap; }
.tnk-yt__ligne input { flex: 1 1 260px; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid #2a2e36; border-radius: 10px; background: #0a0c0f; color: #fff; font: 500 .95rem 'Barlow', system-ui, sans-serif; }
.tnk-yt__ligne input:focus { outline: none; border-color: #daf37c; }
