/**
 * T411 Rétro Style — Version Haute Définition Aérée & Agrandie
 * Nouveau logo vectoriel 3D, Nouveaux badges nets et grands, Tableau aéré
 */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #ecf1f6;
    color: #1e293b;
    font-size: 12px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: #1d4ed8;
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover {
    color: #0284c7;
    text-decoration: underline;
}

/* CONTENEUR PRINCIPAL PLUS LARGE & AÉRÉ */
.t411-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 15px;
}

/* =============================================================================
   1. HEADER NOBLE BLEU NUIT AVEC NOUVEAU LOGO HD
   ============================================================================= */
.t411-header {
    background: linear-gradient(180deg, #032b50 0%, #001f3f 100%);
    color: #ffffff;
    padding: 0 0 10px 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.35);
}

.t411-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* LOGO EMBLÉMATIQUE CUBE 3D SEUL (EXACTEMENT COMME SUR LE SCREENSHOT) */
.t411-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    padding-top: 10px;
    padding-bottom: 4px;
}
.t411-logo-link:hover {
    transform: translateY(-1px) scale(1.02);
}

.t411-logo-img {
    height: 52px;
    width: auto;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.65));
    transition: filter 0.25s ease;
}
.t411-logo-link:hover .t411-logo-img {
    filter: drop-shadow(0 4px 16px rgba(56, 189, 248, 0.55)) drop-shadow(0 2px 6px rgba(0,0,0,0.8));
}

.t411-logo-title {
    font-family: 'Arial Black', Impact, 'Segoe UI Black', sans-serif;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(180deg, #ffffff 0%, #e0f2fe 45%, #93c5fd 85%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.85));
    transition: filter 0.25s ease;
    line-height: 1;
}
.t411-logo-link:hover .t411-logo-title {
    filter: drop-shadow(0 0 12px rgba(125, 211, 252, 0.65)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.85));
}

/* =============================================================================
   2. ÉTAGE SUPÉRIEUR DU HEADER (LOGO + USERBAR + RECHERCHE SOBRE)
   ============================================================================= */
.t411-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 6px;
}

.t411-user-search-zone {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 0;
}

/* =============================================================================
   CAPSULE VISITEUR SUSPENDUE — AUTHENTIQUE T411 2013-2017 (OPTION A)
   ============================================================================= */
.t411-capsule-vintage {
    display: inline-flex;
    align-items: stretch;
    background: linear-gradient(180deg, #05335e 0%, #02203d 100%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-top: none;
    border-radius: 0 0 11px 11px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
    overflow: visible !important;
    position: relative;
    z-index: 50;
    margin-top: 0;
}

.t411-capsule-search {
    display: flex;
    align-items: center;
    padding: 3px 8px 3px 10px;
    gap: 6px;
    margin: 0;
    border-radius: 0 0 0 10px;
}

.t411-capsule-input {
    background: #ffffff;
    border: 1px solid #7ea0b7;
    border-radius: 12px;
    height: 22px;
    padding: 0 12px;
    width: 220px;
    font-size: 11.5px;
    color: #0f172a;
    outline: none;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.t411-capsule-input::placeholder {
    color: #64748b;
    font-size: 11px;
    opacity: 0.9;
}

.t411-capsule-input:focus {
    border-color: #0284c7;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15), 0 0 6px rgba(2, 132, 199, 0.4);
}

.t411-capsule-submit {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 2px;
    display: flex;
    align-items: center;
    gap: 2px;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.t411-capsule-submit:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 0 4px #38bdf8);
}

.t411-capsule-tab {
    background: linear-gradient(180deg, #e4e7ea 0%, #cbd2d8 100%);
    border-left: 1px solid #7ea0b7;
    border-radius: 0 0 10px 0;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.t411-capsule-tab-member {
    gap: 8px;
    padding: 0 14px;
    font-size: 11px;
    font-weight: normal;
    color: #1e293b;
}

/* MENU DÉROULANT T411 2017 DANS LA CAPSULE */
.t411-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.t411-menu-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 6px;
    background: #ffffff;
    border: 1px solid #7ea0b7;
    border-radius: 4px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    min-width: 170px;
    z-index: 99999 !important;
    padding: 5px 0;
}

.t411-menu-dropdown a {
    display: block !important;
    padding: 7px 14px !important;
    color: #1e293b !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.t411-menu-dropdown a:hover {
    background: #e0f2fe !important;
    color: #0284c7 !important;
}

.t411-dropdown:hover .t411-menu-dropdown,
.t411-dropdown.open .t411-menu-dropdown {
    display: block !important;
}

.t411-capsule-tab-member a {
    color: #026bb4;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.t411-capsule-tab-member a:hover {
    text-decoration: underline;
    color: #034f85;
}

.t411-capsule-tab .t411-sep {
    color: #8fa6b8;
    font-weight: normal;
    font-size: 11px;
    margin: 0 1px;
}

.t411-capsule-tab a {
    color: #026bb4;
    text-decoration: none;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    transition: color 0.15s ease;
}

.t411-capsule-tab a:hover {
    color: #034f85;
    text-decoration: underline;
}

.t411-capsule-tab .t411-sep {
    color: #94a3b8;
    font-weight: normal;
}

/* LIGNE D'ÉTAT MEMBRE DISCRÈTE ET LISIBLE */
.t411-userbar {
    font-size: 11.5px;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 7px;
}
.t411-user-greeting strong {
    color: #ffffff;
}
.t411-user-sep {
    color: #475569;
    font-size: 10px;
}
.t411-user-stat strong {
    color: #e2e8f0;
}
.t411-user-link {
    color: #38bdf8;
    text-decoration: none;
    font-weight: bold;
}
.t411-user-link:hover {
    text-decoration: underline;
}
.t411-user-select {
    background: #0a1f3d;
    color: #93c5fd;
    border: 1px solid #1e3a8a;
    border-radius: 3px;
    font-size: 10px;
    padding: 1px 4px;
    cursor: pointer;
}

/* CHAMP DE RECHERCHE RÉTRO SOBRE ET NET */
.t411-search-box-retro {
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border: 1px solid #0284c7;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.t411-search-input-retro {
    border: none;
    outline: none;
    padding: 5px 12px;
    font-size: 12px;
    width: 230px;
    color: #0f172a;
    background: #ffffff;
}
.t411-search-input-retro::placeholder {
    color: #94a3b8;
}
.t411-search-btn-retro {
    background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    border: none;
    border-left: 1px solid #0284c7;
    padding: 0 14px;
    font-size: 11.5px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.15s ease;
}
.t411-search-btn-retro:hover {
    background: linear-gradient(180deg, #0369a1 0%, #075985 100%);
}

/* =============================================================================
   3. BARRE D'ONGLETS RÉTRO CONTINUE ET HOMOGÈNE
   ============================================================================= */
.t411-navbar-retro {
    margin-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 6px;
}

.t411-nav-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.t411-nav-tabs li a {
    display: block;
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    padding: 4px 12px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.t411-nav-tabs li a:hover {
    color: #bae6fd;
    text-shadow: 0 0 6px rgba(186, 230, 253, 0.6);
}

/* VRAI BOUTON ACTIF EN RELIEF DU SCREENSHOT D'ORIGINE */
.t411-nav-tabs li.active a {
    color: #ffffff;
    background: linear-gradient(180deg, #0284c7 0%, #0369a1 50%, #024e7b 100%);
    border: 1px solid #38bdf8;
    border-radius: 4px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 2px 4px rgba(0, 0, 0, 0.35);
    padding: 4px 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* =============================================================================
   2. SÉPARATEUR BLANC AVEC OMBRE PORTÉE ÉLÉGANTE
   ============================================================================= */
.t411-header-glow-bar {
    height: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 100%);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #cbd5e1;
    margin-bottom: 16px;
}

/* BANDEAU RATIO RÉCAPITULATIF SOIGNÉ */
.t411-ratio-ribbon {
    background: linear-gradient(180deg, #092c54 0%, #061e3b 100%);
    border: 1px solid #1c4b82;
    border-top: 1px solid #2563eb;
    border-radius: 4px;
    padding: 8px 16px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    color: #f1f5f9;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* =============================================================================
   3. BARRES DE TITRE DES CATÉGORIES (Grandes, nettes et biseautées)
   ============================================================================= */
.t411-bar-main-title {
    background: linear-gradient(180deg, #0f396d 0%, #061e3d 100%);
    border: 1px solid #1d4ed8;
    border-top: 1px solid #38bdf8;
    border-radius: 4px;
    color: #ffffff;
    font-weight: 800;
    font-size: 13.5px;
    padding: 8px 16px;
    margin-bottom: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.t411-cat-block {
    margin-bottom: 20px;
}

.t411-bar-cat-title {
    background: linear-gradient(180deg, #103d73 0%, #072244 100%);
    border: 1px solid #1e40af;
    border-top: 1px solid #60a5fa;
    border-radius: 4px 4px 0 0;
    color: #ffffff;
    font-weight: 800;
    font-size: 13px;
    padding: 8px 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* =============================================================================
   4. TABLEAU DES TORRENTS AÉRÉ, LISIBLE & RAFRAÎCHI
   ============================================================================= */
.t411-table-card {
    background: #ffffff;
    border: 1px solid #94a3b8;
    border-top: none;
    border-radius: 0 0 4px 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.t411-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11.5px;
}

.t411-table th {
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    color: #1e3a5f;
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 8px 12px;
    border-bottom: 1px solid #cbd5e1;
    border-right: 1px solid #e2e8f0;
    text-align: left;
    white-space: nowrap;
}
.t411-table th:last-child {
    border-right: none;
}

.t411-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #edf2f7;
    border-right: 1px solid #f8fafc;
    vertical-align: middle;
}
.t411-table td:last-child {
    border-right: none;
}

.t411-table tr:nth-child(even) {
    background-color: #fcfdfe;
}
.t411-table tr:hover {
    background-color: #eef6ff !important;
    transition: background 0.1s ease;
}

/* =============================================================================
   5. NOUVEAUX BADGES DE CATÉGORIES REFAITS À NEUF (Vectoriels, Nets & Propres)
   ============================================================================= */
.t411-cat-badge-img {
    height: 24px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.18));
    transition: transform 0.12s ease;
}
.t411-cat-badge-img:hover {
    transform: scale(1.06);
}

/* FILMS & SÉRIES : Doré / Bronze noble éclatant */
.badge-gold {
    background: linear-gradient(180deg, #d4af37 0%, #a67c1e 60%, #876211 100%);
    border-color: #6d4e0b;
}

/* MUSIQUE : Rouge Rubis intense */
.badge-red {
    background: linear-gradient(180deg, #e11d48 0%, #be123c 60%, #881337 100%);
    border-color: #4c0519;
}

/* LOGICIELS : Bleu Saphir éclatant */
.badge-blue {
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 60%, #1e3a8a 100%);
    border-color: #172554;
}

/* JEUX : Vert Émeraude vif */
.badge-green {
    background: linear-gradient(180deg, #10b981 0%, #059669 60%, #064e3b 100%);
    border-color: #022c22;
}

/* EBOOKS : Violet Royal */
.badge-purple {
    background: linear-gradient(180deg, #8b5cf6 0%, #7c3aed 60%, #5b21b6 100%);
    border-color: #4c1d95;
}

/* ANIMES : Cyan / Turquoise électrique */
.badge-cyan {
    background: linear-gradient(180deg, #06b6d4 0%, #0891b2 60%, #155e75 100%);
    border-color: #164e63;
}

/* NOM DU TORRENT BIEN CONTRASTÉ */
.t411-torrent-title {
    color: #1d4ed8;
    font-weight: 600;
    font-size: 12px;
    display: inline-block;
    transition: color 0.15s ease;
}
.t411-torrent-title:hover {
    color: #0284c7;
    text-decoration: underline;
}

/* COLONNES CHIFFRES AGRANDIES ET NETTES */
.t411-col-comments {
    text-align: center;
    color: #64748b;
    font-size: 11.5px;
}

.t411-col-age {
    text-align: center;
    color: #475569;
    font-size: 11px;
}

.t411-col-size {
    text-align: center;
    color: #1e293b;
    font-weight: 700;
    font-size: 11.5px;
}

.t411-col-seed {
    text-align: center;
    color: #16a34a;
    font-weight: 900;
    font-size: 12.5px;
    text-shadow: 0 0 1px rgba(22, 163, 74, 0.3);
}

.t411-col-leech {
    text-align: center;
    color: #dc2626;
    font-weight: 900;
    font-size: 12.5px;
}

/* =============================================================================
   6. PANNEAUX & CARTES UNIFORMES T411
   ============================================================================= */
.t411-card {
    background: #ffffff;
    border: 1px solid #94a3b8;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

.t411-card-header {
    background: linear-gradient(180deg, #103d73 0%, #072244 100%);
    border-bottom: 2px solid #38bdf8;
    color: #ffffff;
    font-weight: 800;
    font-size: 13.5px;
    padding: 10px 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

/* =============================================================================
   7. FOOTER AUTHENTIQUE
   ============================================================================= */
.t411-footer {
    background: #041427;
    color: #94a3b8;
    padding: 24px 0;
    text-align: center;
    font-size: 11.5px;
    margin-top: 40px;
    border-top: 2px solid #1c4b82;
}

/* =============================================================================
   8. RESPONSIVE DESIGN COMPLET MOBILE & TABLETTES (SMARTPHONES IMPECCABLES)
   ============================================================================= */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* GRILLE DU DÉCOMPTE ADAPTATIVE */
.t411-countdown-grid {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 14px 0;
}

.t411-countdown-tile {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-top: 3px solid #0284c7;
    border-radius: 4px;
    padding: 10px 16px;
    min-width: 95px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.t411-countdown-num {
    font-family: 'Arial Black', Impact, sans-serif;
    font-size: 34px;
    color: #0369a1;
    line-height: 1;
}

.t411-countdown-lbl {
    font-size: 10px;
    font-weight: 800;
    color: #64748b;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .t411-container {
        padding: 0 10px;
    }

    /* HEADER MOBILE */
    .t411-header {
        padding: 0 0 6px 0;
    }
    .t411-header-top {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-bottom: 6px;
    }
    .t411-logo-link {
        justify-content: center;
        padding-top: 6px;
        padding-bottom: 2px;
    }
    .t411-logo-img {
        height: 40px;
    }
    .t411-logo-title {
        font-size: 28px;
    }

    /* CAPSULE MOBILE TOUCH-FRIENDLY & SUR 2 ÉTAGES */
    .t411-user-search-zone {
        width: 100%;
        align-items: stretch;
    }
    .t411-capsule-vintage {
        width: 100%;
        display: flex;
        flex-direction: column;
        border-radius: 6px;
        border: 1px solid rgba(255, 255, 255, 0.35);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    }
    .t411-capsule-search {
        width: 100%;
        padding: 6px 10px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        border-radius: 5px 5px 0 0;
    }
    .t411-capsule-input {
        flex: 1;
        width: 100% !important;
        min-width: 0 !important;
        height: 26px;
        font-size: 13px;
    }
    .t411-capsule-tab {
        width: 100%;
        border-left: none;
        border-top: 1px solid #7ea0b7;
        border-radius: 0 0 5px 5px;
        padding: 6px 10px;
        justify-content: center;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 11px;
        white-space: nowrap;
        gap: 8px;
    }
    .t411-capsule-tab-member {
        justify-content: flex-start;
        padding: 5px 8px;
        font-size: 10.5px;
        gap: 6px;
    }

    /* BARRE D'ONGLETS DU SITE AVEC DÉFILEMENT TACTILE FLUIDE (SWIPE) */
    .t411-navbar-retro {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-top: 4px;
        padding: 4px 0 6px 0;
        scrollbar-width: none;
    }
    .t411-navbar-retro::-webkit-scrollbar {
        display: none;
    }
    .t411-nav-tabs {
        display: flex;
        flex-wrap: nowrap;
        gap: 4px;
        width: max-content;
    }
    .t411-nav-tabs li a {
        white-space: nowrap;
        padding: 6px 12px;
        font-size: 11.5px;
    }

    /* BANDEAU RATIO & ACCUEIL MOBILE */
    .t411-ratio-ribbon {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 8px 12px;
        font-size: 11px;
    }

    /* TABLEAU DES TORRENTS SUR MOBILE */
    .t411-table-retro th:nth-child(3),
    .t411-table-retro td:nth-child(3),
    .t411-table-retro th:nth-child(4),
    .t411-table-retro td:nth-child(4),
    .t411-table-retro th:nth-child(5),
    .t411-table-retro td:nth-child(5) {
        display: none !important; /* Masquer colonnes secondaires NFO, Comms, Âge sur smartphone */
    }
    .t411-col-title {
        max-width: 170px;
    }
    .t411-col-title a {
        font-size: 11.5px;
        display: inline-block;
        max-width: 170px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 600px) {
    /* GRILLE DÉCOMPTE 4 COLONNES PARFAITES SUR TOUS SMARTPHONES */
    .t411-countdown-grid,
    #t411Countdown {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 6px !important;
        margin: 10px 0 !important;
    }
    .t411-countdown-tile,
    #t411Countdown > div {
        min-width: 0 !important;
        width: 100% !important;
        padding: 8px 2px !important;
    }
    .t411-countdown-num,
    #cdDays, #cdHours, #cdMinutes, #cdSeconds {
        font-size: 22px !important;
    }
    .t411-countdown-lbl {
        font-size: 9px !important;
        letter-spacing: 0 !important;
        margin-top: 4px !important;
    }
}

@media (max-width: 480px) {

    /* SHOUTBOX MOBILE */
    #countdownShoutMessages {
        height: 220px !important;
        font-size: 11.5px !important;
        padding: 8px !important;
    }
    #cdShoutForm {
        flex-direction: column;
        gap: 6px;
    }
    #cdShoutInput {
        width: 100% !important;
        height: 38px !important;
        font-size: 13px !important;
    }
    #cdShoutBtn {
        width: 100% !important;
        height: 36px !important;
    }
}

/* =============================================================================
   2027 UPGRADE : RECHERCHE PRÉDICTIVE INSTANTANÉE DANS LA CAPSULE
   ============================================================================= */
.t411-capsule-search {
    position: relative;
}

.t411-search-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 330px;
    background: #ffffff;
    border: 1px solid #0284c7;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    z-index: 999999;
    max-height: 360px;
    overflow-y: auto;
    display: none;
    text-align: left;
}

.t411-search-dropdown.active {
    display: block;
}

.t411-search-item {
    padding: 7px 10px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    text-decoration: none;
    color: #1e293b;
    font-size: 11.5px;
    cursor: pointer;
    transition: background 0.1s ease;
}

.t411-search-item:hover,
.t411-search-item.selected {
    background: #e0f2fe;
    color: #0369a1;
}

.t411-search-item:last-child {
    border-bottom: none;
}

.t411-search-badge {
    background: #0284c7;
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 3px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.t411-search-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.t411-search-meta {
    font-size: 10.5px;
    color: #64748b;
    white-space: nowrap;
    flex-shrink: 0;
}

.t411-search-footer {
    padding: 6px 10px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    font-size: 10.5px;
    color: #0284c7;
    font-weight: bold;
    cursor: pointer;
}

.t411-search-footer:hover {
    background: #e0f2fe;
}

/* SHOUTBOX HIGHLIGHT @MENTION */
.shout-mention {
    background: #fef08a;
    color: #854d0e;
    font-weight: bold;
    border-radius: 3px;
    padding: 0 4px;
}

/* =============================================================================
   2027 UPGRADE : DARK MODE NOCTURNE OLED UNIVERSEL (Toutes les pages)
   ============================================================================= */
html.t411-dark,
html.t411-dark body,
body.t411-dark {
    background-color: #080d19 !important;
    color: #cbd5e1 !important;
}

/* FOND GLOBAL DES CONTENEURS ET PAGES */
html.t411-dark .t411-container {
    color: #cbd5e1 !important;
}

/* OVERRIDE TOUS LES BLOCS AVEC FOND BLANC OU CLAIR INLINE */
html.t411-dark [style*="background: #ffffff"],
html.t411-dark [style*="background:#ffffff"],
html.t411-dark [style*="background: #f8fafc"],
html.t411-dark [style*="background:#f8fafc"],
html.t411-dark [style*="background: #f1f5f9"],
html.t411-dark [style*="background:#f1f5f9"],
html.t411-dark [style*="background: #edf2f7"],
html.t411-dark [style*="background:#edf2f7"],
html.t411-dark [style*="background: #ecf1f6"],
html.t411-dark [style*="background:#ecf1f6"],
html.t411-dark [style*="background: linear-gradient(180deg, #ffffff"],
html.t411-dark [style*="background:linear-gradient(180deg, #ffffff"],
html.t411-dark [style*="background: linear-gradient(180deg, #f8fafc"],
html.t411-dark [style*="background:linear-gradient(180deg, #f8fafc"],
html.t411-dark [style*="background: linear-gradient(180deg, #f0fdf4"],
html.t411-dark [style*="background:linear-gradient(180deg, #f0fdf4"] {
    background: #111827 !important;
    color: #cbd5e1 !important;
}

/* CARTES ET BLOCS STRUCTURÉS */
html.t411-dark .t411-card,
html.t411-dark .t411-table-card,
html.t411-dark .t411-box,
html.t411-dark .t411-cat-block,
html.t411-dark .t411-ratio-ribbon,
html.t411-dark .t411-filter-box,
html.t411-dark .t411-card > div {
    border-color: #1f2937 !important;
}

html.t411-dark .t411-card {
    background: #111827 !important;
    border-color: #1f2937 !important;
    color: #e2e8f0 !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4) !important;
}

/* OVERRIDE TEXTES SOMBRES SUR FOND NOCTURNE */
html.t411-dark [style*="color: #0f172a"],
html.t411-dark [style*="color:#0f172a"],
html.t411-dark [style*="color: #1e293b"],
html.t411-dark [style*="color:#1e293b"],
html.t411-dark [style*="color: #334155"],
html.t411-dark [style*="color:#334155"],
html.t411-dark [style*="color: #475569"],
html.t411-dark [style*="color:#475569"],
html.t411-dark [style*="color: #14532d"],
html.t411-dark [style*="color: #15803d"],
html.t411-dark [style*="color: #166534"],
html.t411-dark h1,
html.t411-dark h2,
html.t411-dark h3,
html.t411-dark h4 {
    color: #f1f5f9 !important;
}

html.t411-dark [style*="color: #64748b"],
html.t411-dark [style*="color:#64748b"] {
    color: #94a3b8 !important;
}

/* BORDURES CLAIRES CONVERTIES */
html.t411-dark [style*="border: 1px solid #cbd5e1"],
html.t411-dark [style*="border:1px solid #cbd5e1"],
html.t411-dark [style*="border: 1px solid #e2e8f0"],
html.t411-dark [style*="border:1px solid #e2e8f0"],
html.t411-dark [style*="border: 1px solid #94a3b8"],
html.t411-dark [style*="border:1px solid #94a3b8"],
html.t411-dark [style*="border: 2px solid #86efac"],
html.t411-dark [style*="border: 1px solid #86efac"] {
    border-color: #1f2937 !important;
}

/* EN-TÊTES DE BARRES T411 (Torrents du jour, Catégories) */
html.t411-dark .t411-bar-main-title {
    background: linear-gradient(180deg, #1e3a8a 0%, #0f172a 100%) !important;
    border-color: #1e40af !important;
    color: #ffffff !important;
}

html.t411-dark .t411-bar-cat-title {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
    border-color: #334155 !important;
    color: #93c5fd !important;
}

/* BOUTONS DE FILTRES NON ACTIFS (Toutes, Films, Séries, etc.) */
html.t411-dark a[style*="background:#f1f5f9"],
html.t411-dark a[style*="background: #f1f5f9"] {
    background: #1e293b !important;
    color: #cbd5e1 !important;
    border-color: #334155 !important;
}

html.t411-dark a[style*="background:#f8fafc"],
html.t411-dark a[style*="background: #f8fafc"] {
    background: #1e293b !important;
    color: #94a3b8 !important;
    border-color: #334155 !important;
}

/* TABLEAUX SUR TOUTES LES PAGES (Torrents, Top 100, Account) */
html.t411-dark .t411-table-card,
html.t411-dark .t411-table,
html.t411-dark table {
    background: #111827 !important;
    border-color: #1f2937 !important;
    color: #cbd5e1 !important;
}

html.t411-dark .t411-table thead th,
html.t411-dark table thead th {
    background: #0f172a !important;
    color: #94a3b8 !important;
    border-bottom: 2px solid #1f2937 !important;
}

html.t411-dark .t411-table tbody tr,
html.t411-dark table tbody tr {
    background: #111827 !important;
    border-bottom: 1px solid #1f2937 !important;
}

html.t411-dark .t411-table tbody tr:nth-child(even),
html.t411-dark table tbody tr:nth-child(even) {
    background: #161f33 !important;
}

html.t411-dark .t411-table tbody tr:hover,
html.t411-dark table tbody tr:hover {
    background: #1e293b !important;
}

html.t411-dark .t411-table tbody td,
html.t411-dark table tbody td {
    border-bottom-color: #1f2937 !important;
    color: #cbd5e1 !important;
}

/* LIENS ET TITRES DE TORRENTS */
html.t411-dark .t411-torrent-title,
html.t411-dark a.t411-torrent-title {
    color: #38bdf8 !important;
}

html.t411-dark a.t411-torrent-title:hover {
    color: #7dd3fc !important;
}

html.t411-dark a {
    color: #38bdf8;
}

/* FORMULAIRES, INPUTS, SELECTS, TEXTAREAS */
html.t411-dark input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
html.t411-dark input[type="text"],
html.t411-dark input[type="password"],
html.t411-dark input[type="email"],
html.t411-dark input[type="search"],
html.t411-dark input[type="url"],
html.t411-dark input[type="number"],
html.t411-dark input[type="file"],
html.t411-dark select,
html.t411-dark textarea {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

html.t411-dark input[type="file"] {
    color: #cbd5e1 !important;
}

html.t411-dark input::placeholder,
html.t411-dark textarea::placeholder {
    color: #64748b !important;
}

/* NFO VIEWER RÉTRO */
html.t411-dark .t411-nfo-box,
html.t411-dark pre {
    background: #030712 !important;
    border: 1px solid #1f2937 !important;
    color: #38bdf8 !important;
}

/* DETAILS PAGE ONGLETS & PANELS */
html.t411-dark .t411-tab-btn,
html.t411-dark button[style*="background: #ffffff"] {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

/* GRILLE DU DÉCOMPTE SUR ACCUEIL & MOBILE */
html.t411-dark .t411-countdown-tile,
html.t411-dark #t411Countdown > div {
    background: #1e293b !important;
    border-color: #334155 !important;
    border-top-color: #38bdf8 !important;
}

html.t411-dark .t411-countdown-num,
html.t411-dark #cdDays,
html.t411-dark #cdHours,
html.t411-dark #cdMinutes,
html.t411-dark #cdSeconds {
    color: #38bdf8 !important;
}

/* SHOUTBOX MESSAGES & CHAMPS */
html.t411-dark #countdownShoutMessages,
html.t411-dark #shoutbox_messages {
    background: #0f172a !important;
    border-color: #1f2937 !important;
    color: #e2e8f0 !important;
}

html.t411-dark #countdownShoutMessages > div,
html.t411-dark #shoutbox_messages > div {
    border-bottom-color: #1f2937 !important;
}

html.t411-dark #cdShoutInput,
html.t411-dark #shoutbox_input {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #ffffff !important;
}

html.t411-dark .shout-mention {
    background: #854d0e !important;
    color: #fef08a !important;
}

/* CAPSULE DROPDOWN & AUTOCOMPLETE */
html.t411-dark .t411-capsule-vintage {
    background: linear-gradient(180deg, #0e1e38 0%, #081120 100%) !important;
    border: 1px solid #1e293b !important;
    border-top: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6) !important;
}

html.t411-dark .t411-capsule-input {
    background: #0f1e36 !important;
    border: 1px solid #38bdf8 !important;
    color: #ffffff !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6), 0 0 6px rgba(56, 189, 248, 0.2) !important;
}

html.t411-dark .t411-capsule-input::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

html.t411-dark .t411-capsule-input:focus {
    border-color: #7dd3fc !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5), 0 0 10px rgba(56, 189, 248, 0.55) !important;
}

html.t411-dark .t411-capsule-tab {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
    border-left: 1px solid #334155 !important;
    border-top-color: #334155 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

html.t411-dark .t411-capsule-tab a {
    color: #38bdf8 !important;
}

html.t411-dark .t411-capsule-tab a:hover {
    color: #7dd3fc !important;
}

html.t411-dark .t411-capsule-tab .t411-sep {
    color: #475569 !important;
}

html.t411-dark .t411-capsule-tab-member {
    color: #cbd5e1 !important;
}

html.t411-dark .t411-capsule-tab-member a {
    color: #38bdf8 !important;
}

html.t411-dark .t411-capsule-tab-member a:hover {
    color: #7dd3fc !important;
}

html.t411-dark .t411-search-dropdown {
    background: #111827 !important;
    border-color: #0284c7 !important;
}

html.t411-dark .t411-search-item {
    border-bottom-color: #1f2937 !important;
    color: #cbd5e1 !important;
}

html.t411-dark .t411-search-item:hover,
html.t411-dark .t411-search-item.selected {
    background: #1e293b !important;
    color: #38bdf8 !important;
}

html.t411-dark .t411-search-footer {
    background: #0f172a !important;
    border-top-color: #1f2937 !important;
    color: #38bdf8 !important;
}

html.t411-dark .t411-menu-dropdown {
    background: #111827 !important;
    border-color: #334155 !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6) !important;
}

html.t411-dark .t411-menu-dropdown a {
    color: #cbd5e1 !important;
    border-bottom-color: #1f2937 !important;
}

html.t411-dark .t411-menu-dropdown a:hover {
    background: #1e293b !important;
    color: #38bdf8 !important;
}

/* FOOTER */
html.t411-dark .t411-footer {
    background: #050811 !important;
    border-top-color: #1f2937 !important;
    color: #64748b !important;
}

/* =============================================================================
   CORRECTIONS SPÉCIFIQUES DES ANOMALIES CAPTURÉES (Upload, Wiki, Tags, Statuts)
   ============================================================================= */

/* 1. UPLOAD ZONE : DROPZONE & GÉNÉRATEUR (Capture 1) */
html.t411-dark #torrentDropZone,
html.t411-dark div[id="torrentDropZone"],
html.t411-dark [id="torrentDropZone"],
html.t411-dark [style*="background: #f0f9ff"],
html.t411-dark [style*="background:#f0f9ff"] {
    background: #0d1527 !important;
    border-color: #0284c7 !important;
}
html.t411-dark #torrentDropZone label {
    color: #38bdf8 !important;
}
html.t411-dark #torrentDropZone div,
html.t411-dark #torrentDropZone p,
html.t411-dark #torrentDropZone span {
    color: #94a3b8 !important;
}
html.t411-dark #torrentDropZone code {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #38bdf8 !important;
    padding: 1px 4px !important;
    border-radius: 3px !important;
}
html.t411-dark #torrentDropZone label[style*="background: #ffffff"],
html.t411-dark #torrentDropZone label[style*="background:#ffffff"],
html.t411-dark #torrentDropZone [style*="background: #ffffff"],
html.t411-dark #torrentDropZone [style*="background:#ffffff"] {
    background: #1e293b !important;
    border: 1px solid #0284c7 !important;
    color: #38bdf8 !important;
}

/* 2. WIKI & GUIDES : CARTES RATIO & BUFFER (Capture 2) */
html.t411-dark [style*="background: #f0fdf4"],
html.t411-dark [style*="background:#f0fdf4"] {
    background: #0b1f14 !important;
    border-color: #166534 !important;
}
html.t411-dark [style*="background: #eff6ff"],
html.t411-dark [style*="background:#eff6ff"] {
    background: #0c1a30 !important;
    border-color: #1e40af !important;
}
html.t411-dark [style*="background: #e0f2fe"],
html.t411-dark [style*="background:#e0f2fe"] {
    background: #082846 !important;
    border: 1px solid #0284c7 !important;
    color: #7dd3fc !important;
}
html.t411-dark [style*="background: #e0f2fe"] strong,
html.t411-dark [style*="background:#e0f2fe"] strong,
html.t411-dark [style*="background: #e0f2fe"] b,
html.t411-dark [style*="background:#e0f2fe"] b {
    color: #38bdf8 !important;
}
html.t411-dark [style*="background: #e0f2fe"] code,
html.t411-dark [style*="background:#e0f2fe"] code {
    background: #0f172a !important;
    border: 1px solid #0284c7 !important;
    color: #38bdf8 !important;
}
html.t411-dark [style*="background: #fef3c7"],
html.t411-dark [style*="background:#fef3c7"] {
    background: #2a1b05 !important;
    border: 1px solid #b45309 !important;
    color: #fde047 !important;
}
html.t411-dark [style*="background: #fef3c7"] strong,
html.t411-dark [style*="background:#fef3c7"] strong {
    color: #fef08a !important;
}
html.t411-dark [style*="background: #f8fafc"],
html.t411-dark [style*="background:#f8fafc"] {
    background: #0d1527 !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}
html.t411-dark [style*="color: #166534"],
html.t411-dark [style*="color:#166534"],
html.t411-dark [style*="color: #14532d"],
html.t411-dark [style*="color:#14532d"] {
    color: #4ade80 !important;
}
html.t411-dark [style*="color: #1e40af"],
html.t411-dark [style*="color:#1e40af"],
html.t411-dark [style*="color: #1e3a8a"],
html.t411-dark [style*="color:#1e3a8a"],
html.t411-dark [style*="color: #0369a1"],
html.t411-dark [style*="color:#0369a1"] {
    color: #38bdf8 !important;
}
html.t411-dark [style*="color: #92400e"],
html.t411-dark [style*="color:#92400e"],
html.t411-dark [style*="color: #854d0e"],
html.t411-dark [style*="color:#854d0e"],
html.t411-dark [style*="color: #d97706"],
html.t411-dark [style*="color:#d97706"] {
    color: #fde047 !important;
}
html.t411-dark [style*="color: #991b1b"],
html.t411-dark [style*="color:#991b1b"],
html.t411-dark [style*="color: #b91c1c"],
html.t411-dark [style*="color:#b91c1c"] {
    color: #fca5a5 !important;
}
html.t411-dark [style*="color: #1e293b"],
html.t411-dark [style*="color:#1e293b"] {
    color: #cbd5e1 !important;
}
html.t411-dark [style*="color: #334155"],
html.t411-dark [style*="color:#334155"] {
    color: #94a3b8 !important;
}

/* 3. PILLS ET TAGS DE RECHERCHE / FILTRES (Capture 3) */
html.t411-dark a[style*="background: #fffbeb"],
html.t411-dark a[style*="background:#fffbeb"] {
    background: #231805 !important;
    border: 1px solid #78350f !important;
    color: #fde047 !important;
}
html.t411-dark a[style*="background: #f0fdf4"],
html.t411-dark a[style*="background:#f0fdf4"] {
    background: #0b2214 !important;
    border: 1px solid #166534 !important;
    color: #86efac !important;
}
html.t411-dark a[style*="background: #fdf2f8"],
html.t411-dark a[style*="background:#fdf2f8"] {
    background: #250a18 !important;
    border: 1px solid #831843 !important;
    color: #f472b6 !important;
}
html.t411-dark a[style*="background: #f1f5f9"],
html.t411-dark a[style*="background:#f1f5f9"] {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #cbd5e1 !important;
}

/* 4. PILLS DE STATUT (Capture 4) */
html.t411-dark span[style*="background: #dcfce7"],
html.t411-dark span[style*="background:#dcfce7"] {
    background: #0c2b18 !important;
    border: 1px solid #166534 !important;
    color: #4ade80 !important;
}

/* =============================================================================
   TABLEAU DES PALIERS DE SÉCURITÉ DU RATIO (rules.php) — COULEURS VIVES & BADGES
   ============================================================================= */
.t411-tier-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}
.t411-tier-row-green {
    background: #f0fdf4 !important;
    border-left: 5px solid #16a34a !important;
    border-bottom: 1px solid #dcfce7 !important;
}
.t411-tier-row-yellow {
    background: #fefce8 !important;
    border-left: 5px solid #ca8a04 !important;
    border-bottom: 1px solid #fef08a !important;
}
.t411-tier-row-red {
    background: #fef2f2 !important;
    border-left: 5px solid #dc2626 !important;
    border-bottom: 1px solid #fee2e2 !important;
}

.t411-badge-ratio-green {
    color: #15803d !important;
    font-weight: 800;
}
.t411-badge-ratio-yellow {
    color: #a16207 !important;
    font-weight: 800;
}
.t411-badge-ratio-red {
    color: #b91c1c !important;
    font-weight: 800;
}

.t411-badge-tier-green {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #dcfce7 !important;
    color: #15803d !important;
    border: 1px solid #86efac !important;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 11.5px;
}
.t411-badge-tier-yellow {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fef9c3 !important;
    color: #a16207 !important;
    border: 1px solid #fde047 !important;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 11.5px;
}
.t411-badge-tier-red {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fee2e2 !important;
    color: #b91c1c !important;
    border: 1px solid #fca5a5 !important;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 11.5px;
}

/* RENDU EN MODE NUIT ÉCLATANT (DARK MODE) */
html.t411-dark .t411-tier-table {
    border: 1px solid #334155 !important;
    background: #0f172a !important;
}
html.t411-dark .t411-tier-row-green {
    background: rgba(34, 197, 94, 0.12) !important;
    border-left: 5px solid #22c55e !important;
    border-bottom: 1px solid rgba(34, 197, 94, 0.25) !important;
}
html.t411-dark .t411-tier-row-green td {
    color: #f1f5f9 !important;
}
html.t411-dark .t411-tier-row-yellow {
    background: rgba(234, 179, 8, 0.12) !important;
    border-left: 5px solid #eab308 !important;
    border-bottom: 1px solid rgba(234, 179, 8, 0.25) !important;
}
html.t411-dark .t411-tier-row-yellow td {
    color: #f1f5f9 !important;
}
html.t411-dark .t411-tier-row-red {
    background: rgba(239, 68, 68, 0.12) !important;
    border-left: 5px solid #ef4444 !important;
    border-bottom: 1px solid rgba(239, 68, 68, 0.25) !important;
}
html.t411-dark .t411-tier-row-red td {
    color: #f1f5f9 !important;
}

html.t411-dark .t411-badge-ratio-green {
    color: #4ade80 !important;
    text-shadow: 0 0 8px rgba(74, 222, 128, 0.5) !important;
}
html.t411-dark .t411-badge-ratio-yellow {
    color: #facc15 !important;
    text-shadow: 0 0 8px rgba(250, 204, 21, 0.5) !important;
}
html.t411-dark .t411-badge-ratio-red {
    color: #f87171 !important;
    text-shadow: 0 0 8px rgba(248, 113, 113, 0.5) !important;
}

html.t411-dark .t411-badge-tier-green {
    background: rgba(34, 197, 94, 0.22) !important;
    color: #4ade80 !important;
    border: 1px solid #22c55e !important;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.35) !important;
}
html.t411-dark .t411-badge-tier-yellow {
    background: rgba(234, 179, 8, 0.22) !important;
    color: #facc15 !important;
    border: 1px solid #eab308 !important;
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.35) !important;
}
html.t411-dark .t411-badge-tier-red {
    background: rgba(239, 68, 68, 0.22) !important;
    color: #f87171 !important;
    border: 1px solid #ef4444 !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.35) !important;
}




