:root, html[data-theme="kawaii"] {
      --bg: #0c0a10;
      --bg2: #15121e;
      --card: #1e1a28;
      --accent: #d946ef;
      --mauve: #c084fc;
      --pink: #f472b6;
      --rose: #e879f9;
      --text: #f8f1ff;
      --muted: #c4b5d8;
      --glow: rgba(192, 132, 252, 0.35);
      --glow2: rgba(244, 114, 182, 0.35);
      --nav-bg: rgba(12, 10, 16, 0.95);
      --theme-name: 'Kawaii';
    }

    /* —— Thème Cyberpunk —— */
    html[data-theme="cyberpunk"] {
      --bg: #05080f;
      --bg2: #0a1220;
      --card: #0d1526;
      --accent: #00f0ff;
      --mauve: #00f0ff;
      --pink: #ff2a6d;
      --rose: #05ffa1;
      --text: #e8f7ff;
      --muted: #7a9bb8;
      --glow: rgba(0, 240, 255, 0.45);
      --glow2: rgba(255, 42, 109, 0.4);
      --nav-bg: rgba(5, 8, 15, 0.96);
      --theme-name: 'Cyberpunk';
    }
    
    body {
      font-family: 'Inter', system-ui, -apple-system, sans-serif;
      font-display: swap;
      transition: background 0.35s ease, color 0.25s ease;
    }
    
    .title-font {
      font-family: 'Poppins', 'Inter', system-ui, -apple-system, sans-serif;
      font-weight: 600;
      letter-spacing: -.02em;
    }

    .kawaii-bg {
      background: linear-gradient(145deg, var(--bg) 0%, #1a1525 100%);
    }
    html[data-theme="cyberpunk"] .kawaii-bg {
      background:
        radial-gradient(ellipse 80% 50% at 20% -10%, rgba(0, 240, 255, 0.12), transparent 50%),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(255, 42, 109, 0.1), transparent 45%),
        linear-gradient(160deg, #05080f 0%, #0a1220 45%, #0c0a14 100%);
    }

    .geek-card {
      background-color: var(--card);
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .geek-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 
                  0 8px 10px -6px rgb(0 0 0 / 0.1),
                  0 0 0 1px color-mix(in srgb, var(--mauve) 15%, transparent);
    }
    html[data-theme="cyberpunk"] .geek-card {
      border-color: rgba(0, 240, 255, 0.12) !important;
      box-shadow: 0 0 0 1px rgba(0, 240, 255, 0.06), 0 8px 24px rgba(0, 0, 0, 0.45);
    }
    html[data-theme="cyberpunk"] .geek-card:hover {
      border-color: rgba(0, 240, 255, 0.35) !important;
      box-shadow:
        0 0 0 1px rgba(0, 240, 255, 0.25),
        0 0 28px rgba(0, 240, 255, 0.12),
        0 12px 28px rgba(0, 0, 0, 0.5);
    }

    /* Switch thème */
    .gw-theme-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 12px;
      border-radius: 9999px;
      border: 1px solid rgba(255,255,255,0.12);
      background: rgba(255,255,255,0.05);
      color: var(--text);
      font-size: 11px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.2s ease;
      white-space: nowrap;
      line-height: 1;
    }
    .gw-theme-btn:hover {
      border-color: color-mix(in srgb, var(--mauve) 50%, transparent);
      background: color-mix(in srgb, var(--mauve) 12%, transparent);
      box-shadow: 0 0 16px var(--glow);
    }
    .gw-theme-btn .gw-theme-ico { font-size: 13px; }
    .gw-theme-btn .gw-theme-label { letter-spacing: 0.02em; }
    html[data-theme="cyberpunk"] .gw-theme-btn {
      border-color: rgba(0, 240, 255, 0.35);
      background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(255, 42, 109, 0.08));
      box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
      text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
    }
    @media (max-width: 640px) {
      .gw-theme-btn { padding: 8px 10px; }
      .gw-theme-btn .gw-theme-label { display: none; }
    }

    /* Remap couleurs Tailwind → cyberpunk */
    html[data-theme="cyberpunk"] .text-\[\#c084fc\],
    html[data-theme="cyberpunk"] .text-\[\#e879f9\],
    html[data-theme="cyberpunk"] .text-\[\#d946ef\],
    html[data-theme="cyberpunk"] .hover\:text-\[\#c084fc\]:hover {
      color: #00f0ff !important;
    }
    html[data-theme="cyberpunk"] .text-\[\#f472b6\],
    html[data-theme="cyberpunk"] .text-\[\#f9a8d4\],
    html[data-theme="cyberpunk"] .hover\:text-\[\#f472b6\]:hover {
      color: #ff2a6d !important;
    }
    html[data-theme="cyberpunk"] .text-\[\#c4b5d8\],
    html[data-theme="cyberpunk"] .text-\[\#e9d5ff\] {
      color: #7a9bb8 !important;
    }
    html[data-theme="cyberpunk"] .text-\[\#f8f1ff\] {
      color: #e8f7ff !important;
    }
    html[data-theme="cyberpunk"] .text-\[\#0c0a10\] {
      color: #05080f !important;
    }
    html[data-theme="cyberpunk"] .bg-\[\#0c0a10\],
    html[data-theme="cyberpunk"] .bg-\[\#0c0a10\]\/95 {
      background-color: rgba(5, 8, 15, 0.95) !important;
    }
    html[data-theme="cyberpunk"] .bg-\[\#15121e\],
    html[data-theme="cyberpunk"] .bg-\[\#15121e\]\/80 {
      background-color: #0a1220 !important;
    }
    html[data-theme="cyberpunk"] .bg-\[\#1e1a28\],
    html[data-theme="cyberpunk"] .bg-\[\#1a1525\],
    html[data-theme="cyberpunk"] .bg-\[\#2a2538\],
    html[data-theme="cyberpunk"] .hover\:bg-\[\#2a2538\]:hover {
      background-color: #0d1526 !important;
    }
    html[data-theme="cyberpunk"] .from-\[\#1e1a28\],
    html[data-theme="cyberpunk"] .via-\[\#2a2538\],
    html[data-theme="cyberpunk"] .to-\[\#1e1a28\],
    html[data-theme="cyberpunk"] .from-\[\#2a1f3d\] {
      --tw-gradient-from: #0a1220 var(--tw-gradient-from-position) !important;
      --tw-gradient-to: #05080f var(--tw-gradient-to-position) !important;
      --tw-gradient-stops: var(--tw-gradient-from), #0d1526, var(--tw-gradient-to) !important;
    }
    html[data-theme="cyberpunk"] .ring-\[\#c084fc\]\/30,
    html[data-theme="cyberpunk"] .ring-\[\#c084fc\]\/40,
    html[data-theme="cyberpunk"] .ring-\[\#f472b6\]\/40 {
      --tw-ring-color: rgba(0, 240, 255, 0.4) !important;
    }
    html[data-theme="cyberpunk"] .border-\[\#c084fc\]\/40,
    html[data-theme="cyberpunk"] .border-\[\#f472b6\]\/40,
    html[data-theme="cyberpunk"] .decoration-\[\#c084fc\]\/40 {
      border-color: rgba(0, 240, 255, 0.35) !important;
      text-decoration-color: rgba(0, 240, 255, 0.4) !important;
    }
    html[data-theme="cyberpunk"] .bg-\[\#c084fc\],
    html[data-theme="cyberpunk"] .bg-\[\#f472b6\] {
      background-color: #00f0ff !important;
      color: #05080f !important;
    }
    html[data-theme="cyberpunk"] .nav-active {
      background: linear-gradient(90deg, rgba(0, 240, 255, 0.15), rgba(255, 42, 109, 0.08)) !important;
      box-shadow: inset 3px 0 0 #00f0ff;
      color: #00f0ff !important;
    }
    html[data-theme="cyberpunk"] #sidebar {
      border-color: rgba(0, 240, 255, 0.12);
    }
    html[data-theme="cyberpunk"] nav.sticky {
      background: var(--nav-bg) !important;
      border-bottom-color: rgba(0, 240, 255, 0.2) !important;
      box-shadow: 0 0 24px rgba(0, 240, 255, 0.06);
    }
    html[data-theme="cyberpunk"] .title-font {
      text-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
      letter-spacing: 0.02em;
    }
    html[data-theme="cyberpunk"] .geek-badge {
      border-color: rgba(0, 240, 255, 0.35);
      color: #00f0ff;
      background: rgba(0, 240, 255, 0.08);
      text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
    }
    html[data-theme="cyberpunk"] .search-input {
      background: #0a1220 !important;
      border-color: rgba(0, 240, 255, 0.2) !important;
    }
    html[data-theme="cyberpunk"] .search-input:focus {
      border-color: #00f0ff !important;
      box-shadow: 0 0 0 1px rgba(0, 240, 255, 0.35), 0 0 16px rgba(0, 240, 255, 0.15);
    }
    html[data-theme="cyberpunk"] #seo-intro {
      border-color: rgba(0, 240, 255, 0.2) !important;
      background: linear-gradient(160deg, rgba(13, 21, 38, 0.95), rgba(5, 8, 15, 0.9)) !important;
      box-shadow: 0 0 30px rgba(0, 240, 255, 0.06);
    }
    html[data-theme="cyberpunk"] footer a {
      color: #00f0ff !important;
    }
    html[data-theme="cyberpunk"] .gw-watch-fermer-btn,
    html[data-theme="cyberpunk"] #subscribe-btn.bg-white {
      background: linear-gradient(135deg, #00f0ff, #ff2a6d) !important;
      color: #05080f !important;
      border: none !important;
      box-shadow: 0 0 20px rgba(0, 240, 255, 0.35);
    }
    html[data-theme="cyberpunk"] .gw-watch-close-fixed {
      border-color: rgba(0, 240, 255, 0.45);
      box-shadow: 0 0 16px rgba(0, 240, 255, 0.25);
    }
    html[data-theme="cyberpunk"] .gw-watch-close-fixed:hover {
      background: linear-gradient(145deg, #00f0ff, #ff2a6d);
      color: #05080f;
    }
    html[data-theme="cyberpunk"] .gw-vid-badge-new {
      background: linear-gradient(135deg, #00f0ff, #ff2a6d);
      color: #05080f;
    }
    html[data-theme="cyberpunk"] .gw-vid-badge-hot {
      background: linear-gradient(135deg, #ff2a6d, #ff6b00);
    }
    html[data-theme="cyberpunk"] .sidebar-link:hover {
      background-color: rgba(0, 240, 255, 0.08) !important;
      color: #e8f7ff !important;
    }

    /* —— UI polish 2026 —— */
    .geek-card {
      transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
      background: linear-gradient(165deg, rgba(30,26,40,0.95), rgba(18,14,28,0.9));
    }
    .geek-card:hover {
      transform: translateY(-3px);
      border-color: rgba(192, 132, 252, 0.45) !important;
      box-shadow: 0 12px 32px rgba(0,0,0,0.35), 0 0 0 1px rgba(192,132,252,0.12);
    }
    html[data-theme="cyberpunk"] .geek-card:hover {
      border-color: rgba(0, 240, 255, 0.45) !important;
      box-shadow: 0 12px 32px rgba(0,0,0,0.4), 0 0 24px rgba(0, 240, 255, 0.12);
    }
    #home-tag-chips {
      scrollbar-width: none;
      gap: 0.5rem;
      padding-bottom: 0.75rem;
      margin-bottom: 0.25rem;
    }
    #home-tag-chips a {
      border: 1px solid rgba(255,255,255,0.08);
      backdrop-filter: blur(6px);
    }
    #home-tag-chips a.active-chip {
      box-shadow: 0 0 18px rgba(192,132,252,0.35);
      border-color: transparent;
    }
    #home-sub-chips {
      scrollbar-width: none;
    }
    #home-sub-chips a, #home-sub-chips button {
      flex: 0 0 auto;
      white-space: nowrap;
      font-size: 0.7rem;
      padding: 0.35rem 0.75rem;
      border-radius: 9999px;
      border: 1px solid rgba(244, 114, 182, 0.35);
      background: rgba(244, 114, 182, 0.08);
      color: #f9a8d4;
      text-decoration: none;
      cursor: pointer;
      transition: background 0.15s, border-color 0.15s, color 0.15s;
    }
    #home-sub-chips a:hover, #home-sub-chips button:hover {
      background: rgba(244, 114, 182, 0.18);
      border-color: rgba(244, 114, 182, 0.55);
    }
    #home-sub-chips a.active-sub, #home-sub-chips button.active-sub {
      background: linear-gradient(135deg, rgba(192,132,252,0.9), rgba(244,114,182,0.85));
      color: #0c0a10;
      border-color: transparent;
      font-weight: 700;
    }
    html[data-theme="cyberpunk"] #home-sub-chips a,
    html[data-theme="cyberpunk"] #home-sub-chips button {
      border-color: rgba(0, 240, 255, 0.3);
      background: rgba(0, 240, 255, 0.06);
      color: #7dd3fc;
    }
    html[data-theme="cyberpunk"] #home-sub-chips a.active-sub,
    html[data-theme="cyberpunk"] #home-sub-chips button.active-sub {
      background: linear-gradient(135deg, #00f0ff, #ff2a6d);
      color: #05080f;
    }
    #seo-category-intro {
      transition: border-color 0.2s ease;
    }
    #seo-category-intro:hover {
      border-color: rgba(192,132,252,0.28);
    }
    .gw-discover-strip {
      display: flex;
      gap: 0.65rem;
      overflow-x: auto;
      padding: 0.25rem 0 0.75rem;
      scrollbar-width: none;
    }
    .gw-discover-strip::-webkit-scrollbar { display: none; }
    .gw-discover-chip {
      flex: 0 0 auto;
      display: flex;
      align-items: center;
      gap: 0.55rem;
      padding: 0.45rem 0.85rem 0.45rem 0.45rem;
      border-radius: 9999px;
      border: 1px solid rgba(255,255,255,0.1);
      background: rgba(30,26,40,0.85);
      text-decoration: none;
      color: inherit;
      transition: border-color 0.2s, background 0.2s, transform 0.15s;
      max-width: 220px;
    }
    .gw-discover-chip:hover {
      border-color: rgba(192,132,252,0.45);
      background: rgba(192,132,252,0.1);
      transform: translateY(-1px);
    }
    .gw-discover-chip img {
      width: 2rem;
      height: 2rem;
      border-radius: 9999px;
      object-fit: cover;
      ring: 1px solid rgba(255,255,255,0.15);
    }
    .gw-discover-chip .gw-dc-name {
      font-size: 0.75rem;
      font-weight: 600;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 140px;
    }
    .gw-discover-chip .gw-dc-meta {
      font-size: 0.62rem;
      color: #c4b5d8;
    }
    #channels-grid .geek-card {
      min-height: 7.5rem;
    }
    .section-title {
      letter-spacing: -0.02em;
    }

    .video-thumb {
      position: relative;
      overflow: hidden;
      border-radius: 16px;
    }
    
    .video-thumb img {
      transition: transform 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    }
    
    .geek-card:hover .video-thumb img {
      transform: scale(1.06);
    }

    .play-overlay {
      background: linear-gradient(to bottom, transparent, rgba(12,10,16,0.6));
      transition: all 0.2s ease;
    }
    
    .geek-card:hover .play-overlay {
      background: linear-gradient(to bottom, rgba(217,70,239,0.15), rgba(12,10,16,0.75));
    }

    /* Futuristic Geek Play Button - neon */
    .futur-play-btn {
      background: rgba(12, 10, 16, 0.9);
      border: 2px solid var(--mauve);
      box-shadow: 
        0 0 8px var(--pink),
        0 0 16px var(--mauve),
        0 0 24px var(--glow),
        inset 0 0 8px var(--glow);
      transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
      position: relative;
      overflow: hidden;
    }
    html[data-theme="cyberpunk"] .futur-play-btn {
      background: rgba(5, 8, 15, 0.92);
      border-color: #00f0ff;
      box-shadow:
        0 0 10px #00f0ff,
        0 0 22px rgba(255, 42, 109, 0.45),
        0 0 36px rgba(0, 240, 255, 0.25),
        inset 0 0 12px rgba(0, 240, 255, 0.15);
    }
    @media (max-width: 640px) {
      .futur-play-btn {
        width: 3.5rem !important;
        height: 3.5rem !important;
      }
      .futur-play-btn i {
        font-size: 1.3rem !important;
      }
    }
    
    .futur-play-btn::before {
      content: '';
      position: absolute;
      inset: -50%;
      background: linear-gradient(
        135deg,
        transparent 30%,
        rgba(244, 114, 182, 0.25) 50%,
        transparent 70%
      );
      transition: all 0.4s;
      pointer-events: none;
    }
    
    .futur-play-btn i {
      color: #fff;
      text-shadow: 0 0 6px #c084fc, 0 0 12px #f472b6;
      font-size: 1.15rem;
    }
    
    .geek-card:hover .futur-play-btn {
      border-color: #f472b6;
      box-shadow: 
        0 0 12px #f472b6,
        0 0 24px #c084fc,
        0 0 36px rgba(244, 114, 182, 0.5),
        inset 0 0 12px rgba(244, 114, 182, 0.3);
      transform: scale(1.15);
    }
    
    .geek-card:hover .futur-play-btn::before {
      transform: translateX(120%) translateY(40%);
    }
    
    /* Badges style YouTube / Geekweb sur miniatures */
    .gw-vid-badge {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      font-size: 9px;
      font-weight: 800;
      line-height: 1;
      padding: 3px 6px;
      border-radius: 6px;
      letter-spacing: 0.02em;
      text-transform: uppercase;
      box-shadow: 0 2px 8px rgba(0,0,0,0.35);
    }
    .gw-vid-badge-yt { background: #ff0033; color: #fff; }
    .gw-vid-badge-new {
      background: linear-gradient(135deg, #c084fc, #f472b6);
      color: #0c0a10;
    }
    .gw-vid-badge-hot {
      background: linear-gradient(135deg, #fb923c, #ef4444);
      color: #fff;
    }
    .gw-vid-badge-short {
      background: rgba(12,10,16,0.85);
      color: #f9a8d4;
      border: 1px solid rgba(244,114,182,0.45);
    }
    .gw-vid-duration {
      background: rgba(0,0,0,0.82);
      color: #fff;
      font-size: 10px;
      font-family: ui-monospace, monospace;
      font-weight: 700;
      padding: 2px 6px;
      border-radius: 4px;
      letter-spacing: 0.02em;
    }
    .gw-vid-stats {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 4px 8px;
      margin-top: 4px;
      font-size: 10px;
      color: #c4b5d8;
      line-height: 1.2;
    }
    .gw-vid-stats .dot { opacity: 0.45; }
    .gw-vid-stats i { font-size: 9px; opacity: 0.85; }
    @media (max-width: 640px) {
      .gw-vid-badge { font-size: 8px; padding: 2px 5px; }
      .gw-vid-stats { font-size: 9px; gap: 3px 6px; }
    }

    /* Extra futur tech lines */
    .futur-play-btn::after {
      content: '';
      position: absolute;
      top: 20%;
      left: 15%;
      width: 70%;
      height: 1px;
      background: linear-gradient(90deg, transparent, #f472b6, transparent);
      opacity: 0.6;
    }

    .nav-active {
      background-color: #2a2538;
      color: #f8f1ff;
      border-radius: 9999px;
    }

    .section-title {
      font-size: 1.25rem;
      font-weight: 700;
      color: #f8f1ff;
      letter-spacing: -.025em;
    }

    /* .yt-grid legacy - now using Tailwind grid classes directly */

    .modal {
      animation: modalPop 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    /* Fermer toujours visible (viewport) — même avec zoom PC */
    .gw-watch-close-fixed {
      position: fixed;
      top: max(10px, env(safe-area-inset-top, 0px));
      right: max(10px, env(safe-area-inset-right, 0px));
      z-index: 120;
      width: 48px;
      height: 48px;
      border-radius: 9999px;
      border: 2px solid rgba(255,255,255,0.35);
      background: linear-gradient(145deg, rgba(20,16,28,0.95), rgba(40,20,50,0.95));
      color: #fff;
      font-size: 28px;
      line-height: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 8px 28px rgba(0,0,0,0.55), 0 0 0 1px rgba(192,132,252,0.35);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    }
    .gw-watch-close-fixed:hover {
      transform: scale(1.08);
      background: linear-gradient(145deg, #c084fc, #f472b6);
      color: #0c0a10;
      border-color: transparent;
      box-shadow: 0 10px 32px rgba(244,114,182,0.45);
    }
    .gw-watch-close-fixed:active { transform: scale(0.96); }
    /* Barre Fermer collée bas d'écran (viewport) */
    .gw-watch-bottom-fixed {
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 120;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
      background: linear-gradient(to top, rgba(12,10,16,0.96) 40%, rgba(12,10,16,0.75) 80%, transparent);
      pointer-events: none;
    }
    .gw-watch-bottom-fixed > * { pointer-events: auto; }
    .gw-watch-bottom-fixed .gw-watch-fermer-btn {
      min-width: min(280px, calc(100vw - 32px));
      padding: 12px 22px;
      border-radius: 9999px;
      border: 1px solid rgba(255,255,255,0.2);
      background: linear-gradient(135deg, #c084fc, #f472b6);
      color: #0c0a10;
      font-weight: 800;
      font-size: 14px;
      cursor: pointer;
      box-shadow: 0 8px 24px rgba(192,132,252,0.4);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      transition: transform 0.15s ease, box-shadow 0.15s ease;
    }
    .gw-watch-bottom-fixed .gw-watch-fermer-btn:hover {
      transform: translateY(-1px) scale(1.02);
      box-shadow: 0 12px 28px rgba(244,114,182,0.5);
    }
    .gw-watch-bottom-fixed .gw-watch-hint {
      display: none;
      color: #c4b5d8;
      font-size: 11px;
      text-align: center;
    }
    @media (min-width: 768px) {
      .gw-watch-bottom-fixed {
        flex-direction: column;
        gap: 6px;
        padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
      }
      .gw-watch-bottom-fixed .gw-watch-hint { display: block; }
      .gw-watch-close-fixed {
        width: 52px;
        height: 52px;
        font-size: 30px;
        top: max(16px, env(safe-area-inset-top, 0px));
        right: max(16px, env(safe-area-inset-right, 0px));
      }
      .gw-watch-bottom-fixed .gw-watch-fermer-btn {
        min-width: 220px;
        font-size: 15px;
        padding: 13px 28px;
      }
    }
    /* Desktop : zone autour de la carte bien cliquable pour fermer */
    @media (min-width: 641px) {
      #watch-modal {
        cursor: pointer;
        /* place pour barre Fermer fixe */
        padding-bottom: 88px !important;
      }
      #watch-modal > .modal {
        cursor: default;
        max-height: calc(100vh - 7.5rem);
        overflow-y: auto;
      }
    }
    /* Better mobile modal - app like */
    @media (max-width: 640px) {
      #watch-modal {
        padding: 0 !important;
        padding-bottom: 72px !important;
        align-items: stretch !important;
        justify-content: stretch !important;
        cursor: default;
      }
      #watch-modal > .modal {
        margin-top: 0 !important;
        border-radius: 0 !important;
        max-height: calc(100vh - 72px);
        height: calc(100vh - 72px);
        width: 100%;
        display: flex;
        flex-direction: column;
      }
      .video-player-container {
        border-radius: 0 !important;
        flex-shrink: 0;
      }
      #watch-modal > .modal > .gw-watch-scroll {
        flex: 1;
        overflow-y: auto;
      }
      #watch-modal h2 {
        font-size: 1.25rem !important;
        line-height: 1.3 !important;
      }
    }

    @keyframes modalPop {
      from { transform: scale(0.96) translateY(10px); opacity: 0; }
      to { transform: scale(1) translateY(0); opacity: 1; }
    }

    .kawaii-accent {
      color: #f472b6;
    }

    .mauve-accent {
      color: #c084fc;
    }

    .pink-glow {
      box-shadow: 0 0 15px -3px rgb(244 114 182 / 0.3);
    }

    .sidebar-link {
      transition: all 0.1s ease;
    }
    
    .sidebar-link:hover {
      background-color: #2a2538;
      color: #f8f1ff;
    }

    /* —— Layout sidebar (PC + mobile style YouTube) —— */
    #sidebar-overlay {
      display: none;
    }
    #sidebar {
      background: #0c0a10;
      border-right: 1px solid rgba(255,255,255,0.1);
      z-index: 40;
    }
    #sidebar-mobile-header {
      display: none;
    }
    #sidebar-scroll {
      flex: 1 1 auto;
      overflow-x: hidden;
      -webkit-overflow-scrolling: touch;
      overscroll-behavior: contain;
      /* Masquer la barre de défilement (Chrome / Firefox / Edge) */
      scrollbar-width: none; /* Firefox */
      -ms-overflow-style: none; /* IE/Edge legacy */
    }
    #sidebar-scroll::-webkit-scrollbar {
      width: 0 !important;
      height: 0 !important;
      display: none !important;
      background: transparent;
    }
    #sidebar::-webkit-scrollbar {
      width: 0 !important;
      display: none !important;
    }

    /* Desktop / tablette large : colonne stable, SANS barre de scroll interne */
    @media (min-width: 1024px) {
      #sidebar {
        display: flex !important;
        flex-direction: column;
        position: sticky;
        top: 0;
        align-self: flex-start;
        width: 15rem;
        min-width: 15rem;
        max-width: 15rem;
        flex-shrink: 0;
        height: auto;
        max-height: none;
        transform: none !important;
        padding: 1rem 0.75rem;
        overflow: visible !important;
      }
      #sidebar-scroll {
        overflow: visible !important;
        flex: 0 1 auto;
        max-height: none;
      }
      #sidebar-overlay {
        display: none !important;
      }
      #sidebar-mobile-header {
        display: none !important;
      }
      #main-layout {
        align-items: flex-start;
      }
      #main-content {
        min-width: 0;
        flex: 1 1 auto;
      }
    }

    /* Mobile + tablette : tiroir hamburger style YouTube */
    @media (max-width: 1023px) {
      #sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: min(86vw, 300px) !important;
        max-width: 300px !important;
        height: 100% !important;
        max-height: 100dvh !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        transform: translate3d(-105%, 0, 0);
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 80 !important;
        box-shadow: 8px 0 32px rgba(0,0,0,0.55);
        overflow: hidden !important;
        visibility: visible !important;
        pointer-events: none;
      }
      #sidebar.mobile-open {
        transform: translate3d(0, 0, 0);
        pointer-events: auto;
      }
      #sidebar-mobile-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        flex-shrink: 0;
        padding: 0.85rem 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        background: #0c0a10;
      }
      #sidebar-scroll {
        padding: 0.75rem 0.65rem 1.5rem;
        overflow-y: auto;
        /* barre invisible mais scroll tactile OK */
        scrollbar-width: none;
        -ms-overflow-style: none;
      }
      #sidebar-scroll::-webkit-scrollbar {
        width: 0 !important;
        display: none !important;
      }
      #sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        z-index: 75;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.25s ease, visibility 0.25s ease;
      }
      #sidebar-overlay.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
      }
      body.sidebar-open {
        overflow: hidden !important;
        touch-action: none;
      }
      .sidebar-link {
        padding: 14px 16px !important;
        font-size: 1.05rem !important;
        min-height: 48px;
      }
      /* Masquer la pub sidebar sur mobile dans le tiroir */
      #sidebar .gw-ad-side {
        display: none !important;
      }
    }

    .video-meta {
      font-size: 0.875rem;
      color: #c4b5d8;
    }

    .yt-logo {
      filter: drop-shadow(0 0 8px rgb(192 132 252 / 0.3));
    }

    .channel-avatar {
      border: 2px solid #c084fc33;
    }

    .mauve-pill {
      background: linear-gradient(90deg, #c084fc, #e879f9);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      font-weight: 700;
    }

    .geek-badge {
      font-size: 0.65rem;
      padding: 1px 9px;
      background: #2a2538;
      color: #e879f9;
      border-radius: 999px;
      font-weight: 600;
    }

    .thumbnail-overlay {
      background: linear-gradient(180deg, rgba(12,10,16,0) 40%, rgba(12,10,16,0.75) 92%);
    }

    .manga-border {
      border-image: linear-gradient(#f472b6, #c084fc) 1;
    }

    .no-scrollbar::-webkit-scrollbar {
      display: none;
    }
    .no-scrollbar {
      -ms-overflow-style: none;
      scrollbar-width: none;
    }
    .active-chip {
      background: linear-gradient(90deg, #f472b6, #c084fc);
      color: #0c0a10;
      font-weight: 600;
    }

    .video-player-container {
      background: #000;
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.5);
      aspect-ratio: 16 / 9;
    }
    .video-player-container iframe {
      width: 100%;
      height: 100%;
    }

    .nav-item {
      padding: 8px 14px;
      border-radius: 9999px;
      font-weight: 500;
    }
    
    .nav-item.active {
      background: #2a2538;
      color: white;
    }

    /* Force mobile menu visibility on Chrome mobile (fixes display bug) */
    @media (max-width: 639px) {
      #nav-mobile {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
      }
      #nav-desktop {
        display: none !important;
      }
    }

    /* Ensure desktop hidden on small screens */
    @media (max-width: 639px) {
      .hidden.sm\:flex {
        display: none !important;
      }
    }

    /* —— Pubs AdSense : toujours visibles, non masquées par le thème —— */
    .gw-ad-wrap {
      display: block;
      width: 100%;
      margin: 0.75rem 0 1rem;
      padding: 0.5rem 0.65rem 0.65rem;
      border-radius: 1rem;
      border: 1px solid rgba(192, 132, 252, 0.2);
      background: rgba(30, 26, 40, 0.65);
      min-height: 100px;
      overflow: visible;
      position: relative;
      z-index: 1;
    }
    .gw-ad-wrap .gw-ad-label {
      font-size: 9px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #c4b5d8;
      margin-bottom: 0.35rem;
      opacity: 0.8;
    }
    .gw-ad-wrap .adsbygoogle {
      display: block !important;
      min-height: 90px;
      width: 100% !important;
      max-height: none !important;
      overflow: visible !important;
      visibility: visible !important;
      opacity: 1 !important;
    }
    /* Ne pas cacher les iframes ads injectées par Google */
    ins.adsbygoogle,
    ins.adsbygoogle iframe,
    iframe[id^="google_ads_iframe"],
    iframe[src*="googlesyndication"],
    iframe[src*="doubleclick"] {
      display: block !important;
      visibility: visible !important;
      opacity: 1 !important;
      max-height: none !important;
      pointer-events: auto !important;
    }
    .gw-ad-wrap.gw-ad-side {
      min-height: 250px;
      margin-top: 1rem;
    }
    .gw-ad-wrap.gw-ad-banner {
      min-height: 100px;
    }
    /* Bandeau AdBlock */
    #gw-adblock-banner {
      position: fixed;
      left: 0; right: 0; bottom: 0;
      z-index: 2147483000;
      background: linear-gradient(135deg, #7e22ce 0%, #c026d3 50%, #db2777 100%);
      color: #fff;
      padding: 14px 16px;
      box-shadow: 0 -8px 30px rgba(0,0,0,0.45);
      font-size: 14px;
      line-height: 1.4;
    }
    #gw-adblock-banner .gw-adblock-inner {
      max-width: 960px;
      margin: 0 auto;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }
    #gw-adblock-banner button {
      background: #fff;
      color: #86198f;
      border: none;
      border-radius: 9999px;
      padding: 8px 14px;
      font-weight: 700;
      font-size: 12px;
      cursor: pointer;
      white-space: nowrap;
    }
    body.gw-adblock-on { padding-bottom: 88px; }

    /* Petit rappel AdBlock (après « Plus tard ») — desktop: nav / mobile: bas d'écran */
    .gw-adblock-nudge {
      display: none;
      align-items: center;
      gap: 6px;
      max-width: 220px;
      padding: 4px 10px 4px 4px;
      border-radius: 9999px;
      background: linear-gradient(135deg, rgba(192, 132, 252, 0.25), rgba(244, 114, 182, 0.3));
      border: 1px solid rgba(244, 114, 182, 0.55);
      box-shadow: 0 4px 18px rgba(192, 132, 252, 0.35);
      cursor: pointer;
      animation: gw-adblock-nudge-pop 0.45s ease-out, gw-adblock-nudge-pulse 2.4s ease-in-out 0.5s infinite;
      transition: transform 0.15s ease, box-shadow 0.15s ease;
    }
    /* Desktop / tablette : pastille dans la barre (près du compte) */
    body.gw-adblock-nudge-on .gw-adblock-nudge-nav { display: inline-flex; }
    /* Mobile bas : masqué par défaut (desktop) */
    .gw-adblock-nudge-bottom { display: none !important; }
    .gw-adblock-nudge:hover {
      transform: scale(1.04);
      box-shadow: 0 6px 22px rgba(244, 114, 182, 0.45);
    }
    .gw-adblock-nudge-avatar {
      width: 36px;
      height: 36px;
      border-radius: 9999px;
      object-fit: cover;
      flex-shrink: 0;
      box-shadow: 0 0 0 2px rgba(244, 114, 182, 0.65);
    }
    .gw-adblock-nudge-text {
      font-size: 10px;
      font-weight: 800;
      line-height: 1.15;
      color: #fce7f3;
      text-align: left;
      letter-spacing: 0.01em;
    }
    .gw-adblock-nudge-text em {
      display: block;
      font-style: normal;
      font-size: 9px;
      font-weight: 600;
      color: #f9a8d4;
      opacity: 0.95;
    }
    @keyframes gw-adblock-nudge-pop {
      0% { transform: scale(0.6); opacity: 0; }
      70% { transform: scale(1.08); opacity: 1; }
      100% { transform: scale(1); }
    }
    @keyframes gw-adblock-nudge-pulse {
      0%, 100% { box-shadow: 0 4px 18px rgba(192, 132, 252, 0.35); }
      50% { box-shadow: 0 4px 22px rgba(244, 114, 182, 0.65); }
    }
    @media (max-width: 640px) {
      /* Sur mobile : rien en haut, pastille flottante en bas */
      body.gw-adblock-nudge-on .gw-adblock-nudge-nav { display: none !important; }
      body.gw-adblock-nudge-on .gw-adblock-nudge-bottom {
        display: inline-flex !important;
        position: fixed;
        left: 50%;
        bottom: calc(14px + env(safe-area-inset-bottom, 0px));
        transform: translateX(-50%);
        z-index: 2147482990;
        max-width: min(320px, calc(100vw - 24px));
        width: auto;
        padding: 6px 14px 6px 6px;
        gap: 8px;
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(244, 114, 182, 0.35);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        background: linear-gradient(135deg, rgba(40, 20, 50, 0.94), rgba(70, 25, 55, 0.94));
      }
      body.gw-adblock-nudge-on .gw-adblock-nudge-bottom:hover {
        transform: translateX(-50%) scale(1.03);
      }
      body.gw-adblock-nudge-on:not(.gw-adblock-on) {
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
      }
      .gw-adblock-nudge-bottom .gw-adblock-nudge-avatar { width: 40px; height: 40px; }
      .gw-adblock-nudge-bottom .gw-adblock-nudge-text { font-size: 11px; }
      .gw-adblock-nudge-bottom .gw-adblock-nudge-text em { font-size: 9px; }
    }
    /* Mini popover please */
    #gw-adblock-please {
      position: fixed;
      z-index: 2147483001;
      right: 12px;
      top: 72px;
      width: min(300px, calc(100vw - 24px));
      background: linear-gradient(160deg, #1e1a28 0%, #2a1830 100%);
      border: 1px solid rgba(244, 114, 182, 0.45);
      border-radius: 20px;
      padding: 14px;
      box-shadow: 0 16px 40px rgba(0,0,0,0.55);
      color: #fff;
      display: none;
    }
    #gw-adblock-please.open { display: block; animation: gw-adblock-nudge-pop 0.3s ease-out; }
    @media (max-width: 640px) {
      #gw-adblock-please {
        left: 12px;
        right: 12px;
        top: auto;
        bottom: calc(78px + env(safe-area-inset-bottom, 0px));
        width: auto;
      }
    }
    #gw-adblock-please .gw-please-row {
      display: flex;
      gap: 10px;
      align-items: flex-start;
    }
    #gw-adblock-please img {
      width: 56px;
      height: 56px;
      border-radius: 9999px;
      object-fit: cover;
      box-shadow: 0 0 0 2px rgba(244, 114, 182, 0.6);
      flex-shrink: 0;
    }
    #gw-adblock-please strong { color: #f9a8d4; }
    #gw-adblock-please .gw-please-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 12px;
    }
    #gw-adblock-please button {
      border: none;
      border-radius: 9999px;
      padding: 8px 12px;
      font-weight: 700;
      font-size: 11px;
      cursor: pointer;
    }
    #gw-adblock-please [data-reload] {
      background: linear-gradient(135deg, #c084fc, #f472b6);
      color: #0c0a10;
    }
    #gw-adblock-please [data-close] {
      background: rgba(255,255,255,0.1);
      color: #fff;
    }

    /* Admin full-page */
    #admin-page {
      background: linear-gradient(180deg, #0c0a10 0%, #15101c 100%);
    }
    /* Sélecteur d'icônes catégories (menu déroulant avec vrais icônes FA) */
    .gw-icon-picker {
      position: relative;
      display: inline-flex;
      vertical-align: middle;
    }
    .gw-icon-picker-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: #15121e;
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 0.5rem;
      padding: 6px 8px;
      color: #fff;
      font-size: 11px;
      cursor: pointer;
      min-width: 108px;
      transition: border-color 0.15s, background 0.15s;
    }
    .gw-icon-picker-btn:hover,
    .gw-icon-picker.open .gw-icon-picker-btn {
      border-color: rgba(192, 132, 252, 0.55);
      background: #1a1624;
    }
    .gw-icon-picker-btn i.preview {
      font-size: 14px;
      width: 18px;
      text-align: center;
    }
    .gw-icon-picker-btn .lbl {
      flex: 1;
      text-align: left;
      color: #c4b5d8;
      max-width: 72px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .gw-icon-picker-menu {
      display: none;
      position: absolute;
      left: 0;
      top: calc(100% + 4px);
      z-index: 80;
      width: min(280px, 70vw);
      max-height: 220px;
      overflow: auto;
      background: #15121e;
      border: 1px solid rgba(192, 132, 252, 0.35);
      border-radius: 12px;
      padding: 8px;
      box-shadow: 0 12px 32px rgba(0,0,0,0.55);
      grid-template-columns: repeat(6, 1fr);
      gap: 4px;
    }
    .gw-icon-picker.open .gw-icon-picker-menu {
      display: grid;
    }
    .gw-icon-picker-menu button {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 2px;
      padding: 8px 2px 6px;
      border-radius: 8px;
      border: 1px solid transparent;
      background: transparent;
      color: #e9d5ff;
      cursor: pointer;
      font-size: 14px;
      line-height: 1;
      min-height: 44px;
    }
    .gw-icon-picker-menu button:hover {
      background: rgba(192, 132, 252, 0.18);
      border-color: rgba(192, 132, 252, 0.35);
    }
    .gw-icon-picker-menu button.active {
      background: rgba(244, 114, 182, 0.22);
      border-color: rgba(244, 114, 182, 0.55);
      color: #f9a8d4;
    }
    .gw-icon-picker-menu button span {
      font-size: 8px;
      color: #c4b5d8;
      max-width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    /* Couleurs avec pastille */
    .gw-color-picker select {
      padding-left: 22px;
    }
    /* Sélection de texte possible dans tous les champs admin / modals */
    #admin-page input,
    #admin-page textarea,
    #admin-page select,
    .fixed input,
    .fixed textarea,
    .fixed select {
      user-select: text;
      -webkit-user-select: text;
    }
    .admin-tab {
      padding: 0.5rem 0.85rem;
      border-radius: 9999px;
      font-size: 0.75rem;
      font-weight: 600;
      border: 1px solid rgba(255,255,255,0.1);
      background: rgba(255,255,255,0.04);
      white-space: nowrap;
    }
    .admin-tab.active {
      background: #c084fc;
      color: #0c0a10;
      border-color: transparent;
    }
    .admin-stat {
      background: #15121e;
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 1rem;
      padding: 0.85rem 1rem;
    }
    .notif-dot {
      position: absolute;
      top: -2px; right: -2px;
      min-width: 16px; height: 16px;
      padding: 0 4px;
      border-radius: 9999px;
      background: #f472b6;
      color: #0c0a10;
      font-size: 9px;
      font-weight: 800;
      display: flex; align-items: center; justify-content: center;
      line-height: 1;
      z-index: 2;
      box-shadow: 0 0 8px rgba(244,114,182,0.55);
    }
    .notif-dot.hidden {
      display: none !important;
    }
    /* Member panel compact on mobile */
    @media (max-width: 639px) {
      .member-panel-card { padding: 0.6rem !important; border-radius: 1rem !important; }
      .member-panel-card .text-xs { font-size: 10px !important; }
      .member-panel-body { max-height: 78vh !important; padding: 0.75rem !important; }
    }

/* === GW MEMBER PANEL GAMING === */
.gw-member-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 0.75rem 0.4rem 0.4rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(192, 132, 252, 0.45);
  background:
    linear-gradient(135deg, rgba(192,132,252,0.22) 0%, rgba(15,10,28,0.95) 42%, rgba(244,114,182,0.18) 100%);
  color: #f8f1ff;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.35) inset,
    0 0 18px rgba(192,132,252,0.25),
    0 8px 22px rgba(0,0,0,0.35);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
  text-align: left;
  font: inherit;
}
.gw-member-btn:hover {
  transform: translateY(-1px) scale(1.02);
  border-color: rgba(244,114,182,0.75);
  box-shadow:
    0 0 0 1px rgba(244,114,182,0.25) inset,
    0 0 28px rgba(244,114,182,0.35),
    0 10px 28px rgba(0,0,0,0.4);
}
.gw-member-btn:active { transform: translateY(0) scale(0.99); }
.gw-member-btn-glow {
  position: absolute;
  inset: -40% -20%;
  background: radial-gradient(circle at 20% 40%, rgba(192,132,252,0.35), transparent 55%),
              radial-gradient(circle at 80% 60%, rgba(244,114,182,0.28), transparent 50%);
  pointer-events: none;
  animation: gw-member-pulse 3.2s ease-in-out infinite;
}
@keyframes gw-member-pulse {
  0%, 100% { opacity: .55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}
.gw-member-avatar {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(0,240,255,0.45);
  box-shadow: 0 0 12px rgba(0,240,255,0.25);
  z-index: 1;
}
.gw-member-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gw-member-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}
.gw-member-kicker {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #00f0ff;
  text-shadow: 0 0 8px rgba(0,240,255,0.55);
}
html[data-theme="kawaii"] .gw-member-kicker {
  color: #f9a8d4;
  text-shadow: 0 0 8px rgba(244,114,182,0.5);
}
.gw-member-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  max-width: 9.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gw-member-sub {
  font-size: 0.65rem;
  color: rgba(232,213,255,0.8);
  margin-top: 1px;
}
.gw-member-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.7rem;
  background: linear-gradient(135deg, #c084fc, #f472b6);
  color: #0c0a10;
  font-size: 0.9rem;
  box-shadow: 0 0 14px rgba(192,132,252,0.55);
  flex-shrink: 0;
}
.gw-member-btn-mobile {
  padding: 0.28rem 0.45rem 0.28rem 0.28rem;
  gap: 0.4rem;
  border-radius: 0.95rem;
}
.gw-member-btn-mobile .gw-member-avatar {
  width: 2.25rem;
  height: 2.25rem;
}
.gw-member-btn-mobile .gw-member-name {
  font-size: 0.78rem;
  max-width: 4.8rem;
}
.gw-member-btn-mobile .gw-member-kicker {
  font-size: 0.55rem;
  letter-spacing: 0.08em;
}
.gw-member-btn-mobile .gw-member-sub { display: none; }
.gw-member-btn-mobile .gw-member-cta {
  width: 1.7rem;
  height: 1.7rem;
  font-size: 0.75rem;
}
body.gw-logged-in .gw-member-btn {
  border-color: rgba(0,240,255,0.55);
  background:
    linear-gradient(135deg, rgba(0,240,255,0.18) 0%, rgba(15,10,28,0.96) 45%, rgba(192,132,252,0.22) 100%);
}
body.gw-logged-in .gw-member-kicker {
  color: #4ade80;
  text-shadow: 0 0 8px rgba(74,222,128,0.5);
}
html[data-theme="kawaii"] body.gw-logged-in .gw-member-kicker,
body.gw-logged-in html[data-theme="kawaii"] .gw-member-kicker {
  color: #86efac;
}

/* Panel shell */
.gw-member-modal {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(192,132,252,0.18), transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(0,240,255,0.1), transparent 45%),
    rgba(0,0,0,0.78);
  backdrop-filter: blur(6px);
}
.gw-member-shell {
  position: relative;
  max-width: 32rem;
  width: 100%;
  background:
    linear-gradient(180deg, rgba(30,26,48,0.98) 0%, rgba(12,10,20,0.98) 100%);
  border: 1px solid rgba(192,132,252,0.35);
  border-radius: 1.35rem 1.35rem 0 0;
  box-shadow:
    0 0 0 1px rgba(0,240,255,0.12) inset,
    0 0 40px rgba(192,132,252,0.2),
    0 25px 60px rgba(0,0,0,0.55);
  overflow: hidden;
}
@media (min-width: 640px) {
  .gw-member-shell {
    border-radius: 1.35rem;
    max-width: 34rem;
  }
}
.gw-member-shell::before,
.gw-member-shell::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid #00f0ff;
  z-index: 2;
  pointer-events: none;
}
.gw-member-shell::before {
  top: 10px; left: 10px;
  border-right: 0; border-bottom: 0;
}
.gw-member-shell::after {
  top: 10px; right: 10px;
  border-left: 0; border-bottom: 0;
}
.gw-member-header {
  position: relative;
  padding: 1rem 1rem 0.75rem;
  background:
    linear-gradient(90deg, rgba(192,132,252,0.18), rgba(0,240,255,0.08) 55%, transparent),
    linear-gradient(180deg, rgba(255,255,255,0.04), transparent);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.gw-member-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.gw-member-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #00f0ff;
  background: rgba(0,240,255,0.1);
  border: 1px solid rgba(0,240,255,0.35);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  margin-bottom: 0.35rem;
}
.gw-member-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.gw-member-subtitle {
  font-size: 0.75rem;
  color: rgba(232,213,255,0.85);
  margin-top: 0.15rem;
}
.gw-member-close {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: #e9d5ff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.gw-member-close:hover { background: rgba(244,114,182,0.2); border-color: rgba(244,114,182,0.45); }

.gw-member-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
  margin-top: 0.85rem;
}
.gw-stat {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.85rem;
  padding: 0.45rem 0.35rem;
  text-align: center;
}
.gw-stat-val {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 10px rgba(192,132,252,0.4);
}
.gw-stat-label {
  display: block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(196,181,216,0.85);
  margin-top: 0.1rem;
}

.gw-member-tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.65rem 0.85rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.gw-member-tab {
  flex: 1 0 auto;
  min-width: 4.4rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: rgba(232,213,255,0.85);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
}
.gw-member-tab i { margin-right: 0.3rem; opacity: 0.9; }
.gw-member-tab:hover {
  border-color: rgba(192,132,252,0.45);
  color: #fff;
}
.gw-member-tab.active {
  background: linear-gradient(135deg, rgba(192,132,252,0.95), rgba(244,114,182,0.9));
  color: #0c0a10;
  border-color: transparent;
  box-shadow: 0 0 16px rgba(192,132,252,0.45);
}

.gw-member-body {
  padding: 0.75rem 0.9rem 0.5rem;
  max-height: min(62vh, 520px);
  overflow: auto;
}
.gw-member-pane { display: none; }
.gw-member-pane.active { display: block; animation: gw-pane-in .18s ease; }
@keyframes gw-pane-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.member-panel-card,
.gw-member-card {
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  padding: 0.75rem;
  margin-bottom: 0.65rem;
  position: relative;
}
.gw-member-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0.7rem; bottom: 0.7rem;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #00f0ff, #c084fc 55%, #f472b6);
  opacity: 0.85;
}
.gw-member-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #e9d5ff;
  margin-bottom: 0.5rem;
  padding-left: 0.45rem;
}
.gw-member-card-title .gw-chip {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(192,132,252,0.18);
  border: 1px solid rgba(192,132,252,0.35);
  color: #e9d5ff;
}
.gw-member-empty {
  font-size: 0.72rem;
  color: rgba(196,181,216,0.85);
  padding: 0.35rem 0.2rem 0.15rem 0.45rem;
  line-height: 1.4;
}
.gw-member-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 0.75rem;
  padding: 0.45rem 0.5rem;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
}
.gw-member-row:last-child { margin-bottom: 0; }

.gw-member-actions {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem 0.95rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.45));
}
.gw-btn-ghost {
  padding: 0.7rem 0.85rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
  color: #e9d5ff;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.gw-btn-ghost:hover { background: rgba(255,255,255,0.08); }
.gw-btn-primary {
  flex: 1;
  padding: 0.75rem 0.9rem;
  border-radius: 0.95rem;
  border: none;
  background: linear-gradient(135deg, #c084fc 0%, #f472b6 100%);
  color: #0c0a10;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(244,114,182,0.35);
}
.gw-btn-primary:hover { filter: brightness(1.06); }
.gw-btn-primary i { margin-right: 0.35rem; }

.gw-member-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-top: 0.35rem;
}
.gw-quick-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.7rem 0.75rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: #fff;
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: border-color .15s, transform .15s;
}
.gw-quick-btn:hover {
  border-color: rgba(0,240,255,0.45);
  transform: translateY(-1px);
}
.gw-quick-btn strong {
  font-size: 0.78rem;
  font-weight: 800;
}
.gw-quick-btn span {
  font-size: 0.65rem;
  color: rgba(196,181,216,0.9);
}
.gw-quick-btn i {
  color: #00f0ff;
  margin-bottom: 0.15rem;
}
html[data-theme="kawaii"] .gw-quick-btn i { color: #f472b6; }

.gw-auth-shell .gw-member-header { padding-bottom: 0.85rem; }
.gw-auth-tabs {
  display: flex;
  gap: 0.4rem;
  margin: 0.75rem 0 0.5rem;
}
.gw-auth-tab {
  flex: 1;
  padding: 0.65rem 0.5rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: #e9d5ff;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}
.gw-auth-tab.active-login {
  background: linear-gradient(135deg, #c084fc, #a78bfa);
  color: #0c0a10;
  border-color: transparent;
}
.gw-auth-tab.active-signup {
  background: linear-gradient(135deg, #f472b6, #fb7185);
  color: #0c0a10;
  border-color: transparent;
}
.gw-auth-field {
  width: 100%;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0.85rem;
  padding: 0.7rem 0.85rem;
  color: #fff;
  font-size: 0.88rem;
}
.gw-auth-field:focus {
  outline: none;
  border-color: rgba(192,132,252,0.7);
  box-shadow: 0 0 0 3px rgba(192,132,252,0.15);
}
.gw-auth-hint {
  font-size: 0.72rem;
  color: rgba(196,181,216,0.9);
  line-height: 1.4;
}
.gw-member-form label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(196,181,216,0.9);
  margin-bottom: 0.25rem;
}
.gw-member-form input,
.gw-member-form select {
  width: 100%;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0.75rem;
  padding: 0.55rem 0.7rem;
  color: #fff;
  font-size: 0.85rem;
}
.gw-member-form input:focus {
  outline: none;
  border-color: rgba(0,240,255,0.55);
}

@media (max-width: 639px) {
  .gw-member-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gw-member-body { max-height: 58vh; padding: 0.65rem 0.75rem 0.4rem; }
  .gw-member-title { font-size: 1.05rem; }
  .member-panel-card, .gw-member-card { padding: 0.65rem; }
}

/* === GW SHORTS SECTION === */
.gw-shorts-title-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 0.45rem;
  background: linear-gradient(135deg, #ff0033, #f472b6);
  color: #fff;
  font-size: 0.7rem;
  box-shadow: 0 0 12px rgba(255,0,51,0.35);
}
.gw-shorts-strip {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.15rem 0.15rem 0.55rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.gw-shorts-strip::-webkit-scrollbar { height: 6px; }
.gw-shorts-strip::-webkit-scrollbar-thumb {
  background: rgba(244,114,182,0.35);
  border-radius: 999px;
}
.gw-short-card {
  flex: 0 0 auto;
  width: 9.2rem;
  scroll-snap-align: start;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.35);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
  position: relative;
}
@media (min-width: 640px) {
  .gw-short-card { width: 10.5rem; }
}
.gw-short-card:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(244,114,182,0.55);
  box-shadow: 0 10px 28px rgba(244,114,182,0.18);
}
.gw-short-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #000;
  overflow: hidden;
}
.gw-short-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gw-short-thumb .gw-short-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 45%);
  opacity: 0.9;
}
.gw-short-thumb .gw-short-play i {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: rgba(255,0,51,0.9);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  box-shadow: 0 0 14px rgba(255,0,51,0.45);
}
.gw-short-dur {
  position: absolute;
  bottom: 0.4rem;
  right: 0.4rem;
  background: rgba(0,0,0,0.82);
  color: #fff;
  font-size: 10px;
  font-family: ui-monospace, monospace;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 2;
}
.gw-short-badge {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  z-index: 2;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(12,10,16,0.88);
  color: #f9a8d4;
  border: 1px solid rgba(244,114,182,0.5);
}
.gw-short-body {
  padding: 0.45rem 0.5rem 0.55rem;
}
.gw-short-title {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #fff;
}
.gw-short-meta {
  margin-top: 0.25rem;
  font-size: 0.62rem;
  color: rgba(196,181,216,0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Grille shorts (page tag + page chaîne) */
.gw-shorts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .gw-shorts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
}
@media (min-width: 768px) {
  .gw-shorts-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .gw-shorts-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.gw-shorts-grid .gw-short-card {
  width: 100%;
}
/* Mode grille principale en mode Shorts */
#video-grid.gw-grid-shorts-mode {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
@media (min-width: 640px) {
  #video-grid.gw-grid-shorts-mode {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 768px) {
  #video-grid.gw-grid-shorts-mode {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 1024px) {
  #video-grid.gw-grid-shorts-mode {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}
#video-grid.gw-grid-shorts-mode .geek-card .video-thumb {
  aspect-ratio: 9 / 16;
}
#video-grid.gw-grid-shorts-mode .geek-card .video-thumb img {
  object-fit: cover;
  object-position: center;
}

html[data-theme="cyberpunk"] .gw-shorts-title-ico {
  background: linear-gradient(135deg, #00f0ff, #c084fc);
  box-shadow: 0 0 12px rgba(0,240,255,0.35);
}
html[data-theme="cyberpunk"] .gw-short-card:hover {
  border-color: rgba(0,240,255,0.5);
  box-shadow: 0 10px 28px rgba(0,240,255,0.15);
}
