    @keyframes spin {
      to { transform: rotate(360deg); }
    }
    :root {
      --bg: #090a0f;
      --card-bg: #11141e;
      --card-border: #1e2433;
      --accent-red: #ff334b;
      --accent-orange: #ff334b;
      --text-main: #f1f5f9;
      --text-muted: #94a3b8;
      --ad-bg: #0c0e15;
      --ad-border: #1c2230;
      --font-display: 'Space Grotesk', sans-serif;
      --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    }
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
    button, input, select, textarea {
      font-family: inherit;
    }
    body {
      background-color: var(--bg);
      color: var(--text-main);
      font-family: var(--font-body);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      letter-spacing: -0.01em;
    }
    /* Top Nav */
    header {
      background: rgba(17, 20, 30, 0.95);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--card-border);
      position: sticky;
      top: 0;
      z-index: 100;
      padding: 0.85rem 1.5rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1.5rem;
    }
    .brand {
      display: flex;
      align-items: center;
      gap: 0.85rem;
      text-decoration: none;
    }
    .brand-logo-img {
      height: 64px;
      width: auto;
      object-fit: contain;
      filter: drop-shadow(0 0 12px rgba(255, 51, 75, 0.45));
      transition: transform 0.2s ease;
    }
    .brand-logo-img:hover {
      transform: scale(1.04);
    }
    .live-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.2rem 0.6rem;
      background: rgba(255, 51, 75, 0.15);
      border: 1px solid rgba(255, 51, 75, 0.3);
      border-radius: 9999px;
      font-size: 0.72rem;
      font-weight: 700;
      color: var(--accent-red);
      letter-spacing: 0.05em;
      text-transform: uppercase;
    }
    .pulse-dot {
      width: 6px;
      height: 6px;
      background: var(--accent-red);
      border-radius: 50%;
      box-shadow: 0 0 8px var(--accent-red);
      animation: pulse 1.5s infinite;
    }
    @keyframes pulse {
      0% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.4; transform: scale(0.85); }
      100% { opacity: 1; transform: scale(1); }
    }
    .nav-search {
      flex: 1;
      max-width: 480px;
      position: relative;
    }
    .nav-search input {
      width: 100%;
      background: #0d0f17;
      border: 1px solid var(--card-border);
      padding: 0.6rem 1rem 0.6rem 2.4rem;
      border-radius: 9999px;
      color: #fff;
      font-size: 0.9rem;
      outline: none;
      transition: all 0.2s;
    }
    .nav-search input:focus {
      border-color: var(--accent-red);
      box-shadow: 0 0 0 3px rgba(255, 51, 75, 0.15);
    }
    .nav-search .search-icon {
      position: absolute;
      left: 0.9rem;
      top: 50%;
      transform: translateY(-50%);
      font-size: 0.85rem;
      color: var(--text-muted);
    }
    .nav-actions {
      display: flex;
      align-items: center;
      gap: 0.85rem;
    }
    .btn {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.55rem 1.15rem;
      border-radius: 9999px;
      font-family: var(--font-display);
      font-size: 0.88rem;
      font-weight: 700;
      letter-spacing: -0.01em;
      cursor: pointer;
      text-decoration: none;
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      border: none;
      outline: none;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }
    .btn-upload, .btn-primary {
      background: var(--accent-red) !important;
      color: #fff !important;
      box-shadow: 0 4px 14px rgba(255, 51, 75, 0.35) !important;
    }
    .btn-upload:hover, .btn-primary:hover {
      background: #ff1f3a !important;
      filter: brightness(1.1);
      transform: translateY(-1px);
    }
    .btn-outline {
      background: transparent;
      border: 1px solid var(--card-border);
      color: var(--text-main);
    }
    .btn-outline:hover {
      border-color: var(--text-muted);
      background: rgba(255, 255, 255, 0.05);
    }
    /* Subheader & Categories (No Scrollbar, Clean Layout) */
    .filter-bar {
      display: flex;
      align-items: center;
      gap: 0.45rem;
      padding: 0.6rem 1.5rem;
      background: #0d0f17;
      border-bottom: 1px solid var(--card-border);
      flex-wrap: wrap;
    }
    .filter-chip {
      padding: 0.42rem 0.75rem 0.38rem;
      border-radius: 10px;
      background: var(--card-bg);
      border: 1px solid var(--card-border);
      color: var(--text-muted);
      font-size: 0.72rem;
      font-weight: 600;
      cursor: pointer;
      white-space: nowrap;
      transition: all 0.15s ease;
      display: inline-flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 0.1rem;
      min-width: 54px;
      letter-spacing: 0.01em;
    }
    .filter-chip .fc-icon {
      font-size: 1.15rem;
      line-height: 1.1;
      display: block;
    }
    .filter-chip .fc-label {
      font-size: 0.65rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.03em;
      line-height: 1;
      opacity: 0.75;
    }
    .filter-chip.active, .filter-chip:hover {
      background: rgba(255, 51, 75, 0.12);
      border-color: var(--accent-red);
      color: #fff;
    }
    .filter-chip.active .fc-label,
    .filter-chip:hover .fc-label {
      opacity: 1;
    }
    .filter-dropdown {
      position: relative;
      display: inline-block;
    }
    .filter-dropdown-menu {
      position: absolute;
      top: 100%;
      left: 0;
      margin-top: 0.4rem;
      background: var(--card-bg);
      border: 1px solid var(--card-border);
      border-radius: 12px;
      padding: 0.5rem;
      display: none;
      flex-direction: column;
      gap: 0.3rem;
      min-width: 200px;
      z-index: 150;
      box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7);
    }
    .filter-dropdown-menu.show {
      display: flex;
    }
    .filter-dropdown-item {
      padding: 0.45rem 0.8rem;
      border-radius: 6px;
      color: var(--text-muted);
      font-size: 0.8rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      transition: all 0.15s;
    }
    .filter-dropdown-item:hover {
      background: rgba(255, 51, 75, 0.12);
      color: #fff;
    }
    /* Top Leaderboard Ad */
    .ad-leaderboard-container {
      max-width: 1280px;
      margin: 1.25rem auto 0 auto;
      padding: 0 1.5rem;
      width: 100%;
    }
    .ad-leaderboard {
      background: var(--ad-bg);
      border: 1px dashed var(--ad-border);
      border-radius: 12px;
      padding: 1rem 1.5rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      min-height: 85px;
      position: relative;
    }
    .ad-label {
      position: absolute;
      top: 0.4rem;
      right: 0.8rem;
      font-size: 0.65rem;
      color: #475569;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }
    .ad-brand-box {
      display: flex;
      align-items: center;
      gap: 1.2rem;
    }
    .ad-brand-logo {
      width: 48px;
      height: 48px;
      background: #1e293b;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.4rem;
    }
    .ad-brand-info h4 {
      font-size: 0.95rem;
      color: #fff;
      margin-bottom: 0.2rem;
    }
    .ad-brand-info p {
      font-size: 0.8rem;
      color: var(--text-muted);
    }
    .ad-cta-btn {
      background: #3b82f6;
      color: #fff;
      padding: 0.55rem 1.2rem;
      border-radius: 8px;
      text-decoration: none;
      font-size: 0.82rem;
      font-weight: 600;
      transition: background 0.2s;
      white-space: nowrap;
    }
    .ad-cta-btn:hover {
      background: #2563eb;
    }
    /* Live Streams Top Section */
    .live-streams-section {
      background: linear-gradient(180deg, rgba(255, 51, 75, 0.08) 0%, transparent 100%);
      border-bottom: 1px solid var(--card-border);
      padding: 1.5rem 0;
    }
    .live-section-container {
      max-width: 1280px;
      margin: 0 auto;
      padding: 0 1.5rem;
    }
    .section-title-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 1rem;
    }
    .live-heading {
      font-family: var(--font-display);
      font-size: 1.15rem;
      font-weight: 700;
      color: #fff;
      display: flex;
      align-items: center;
      gap: 0.6rem;
    }
    .live-dot-glow {
      width: 10px;
      height: 10px;
      background: var(--accent-red);
      border-radius: 50%;
      box-shadow: 0 0 12px var(--accent-red);
      animation: pulse 1.2s infinite;
    }
    .live-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1.25rem;
    }
    .live-grid.is-hidden {
      display: none !important;
    }
    .live-card {
      background: #0d0f17;
      border: 1px solid rgba(255, 51, 75, 0.3);
      border-radius: 12px;
      overflow: hidden;
      position: relative;
      transition: transform 0.2s, box-shadow 0.2s;
    }
    .live-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(255, 51, 75, 0.25);
    }
    .live-player-box {
      position: relative;
      width: 100%;
      aspect-ratio: 16 / 9;
      background: #000;
    }
        .live-timestamp-overlay {
      position: absolute;
      bottom: 0.6rem;
      right: 0.6rem;
      background: rgba(0, 0, 0, 0.75);
      border: 1px solid rgba(255, 255, 255, 0.2);
      color: #00ff66;
      font-family: monospace, 'Courier New', sans-serif;
      font-size: 0.72rem;
      font-weight: 700;
      padding: 0.2rem 0.5rem;
      border-radius: 4px;
      letter-spacing: 0.05em;
      pointer-events: none;
      z-index: 5;
      text-shadow: 0 0 6px rgba(0, 255, 102, 0.4);
    }
        .live-mute-btn {
      position: absolute;
      top: 0.6rem;
      right: 0.6rem;
      background: rgba(13, 15, 23, 0.85);
      border: 1px solid rgba(255, 255, 255, 0.25);
      color: #fff;
      font-size: 0.72rem;
      font-weight: 700;
      padding: 0.3rem 0.65rem;
      border-radius: 6px;
      display: flex;
      align-items: center;
      gap: 0.35rem;
      cursor: pointer;
      z-index: 10;
      backdrop-filter: blur(6px);
      transition: background 0.2s, border-color 0.2s, transform 0.15s;
    }
    .live-mute-btn:hover {
      background: rgba(255, 51, 75, 0.85);
      border-color: rgba(255, 51, 75, 0.9);
      transform: scale(1.05);
    }
    .live-player-box video {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .live-status-pill {
      position: absolute;
      top: 0.6rem;
      right: 0.6rem;
      background: var(--accent-red);
      color: #fff;
      font-size: 0.68rem;
      font-weight: 800;
      padding: 0.2rem 0.55rem;
      border-radius: 4px;
      display: flex;
      align-items: center;
      gap: 0.35rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      z-index: 2;
      box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    }
    .live-viewers-pill {
      position: absolute;
      top: 0.6rem;
      right: 0.6rem;
      background: rgba(0, 0, 0, 0.75);
      backdrop-filter: blur(4px);
      color: #fff;
      font-size: 0.7rem;
      font-weight: 600;
      padding: 0.2rem 0.55rem;
      border-radius: 4px;
      display: flex;
      align-items: center;
      gap: 0.3rem;
    }
    .live-info-box {
      padding: 0.85rem 1rem;
    }
    .live-stream-title {
      font-size: 0.92rem;
      font-weight: 700;
      color: #fff;
      line-height: 1.35;
      margin-bottom: 0.3rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .live-stream-location {
      font-size: 0.75rem;
      color: var(--accent-orange);
      font-weight: 500;
    }
    /* Section Separator */
    .section-divider {
      max-width: 1280px;
      margin: 1.5rem auto 0 auto;
      padding: 0 1.5rem;
      display: flex;
      align-items: center;
      gap: 1rem;
    }
    .section-divider-line {
      flex: 1;
      height: 1px;
      background: var(--card-border);
    }
    .section-divider-badge {
      font-size: 0.8rem;
      font-weight: 700;
      color: var(--accent-red);
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }
    .layout-container {
      max-width: 1280px;
      margin: 0 auto;
      padding: 1.5rem;
      width: 100%;
      display: grid;
      grid-template-columns: minmax(0, 1fr) 340px;
      gap: 2rem;
    }
    /* #37: grid/flex children may shrink below their content width (no sideways scroll on phones) */
    .layout-container > main { min-width: 0; }
    @media (max-width: 1020px) {
      .layout-container {
        grid-template-columns: minmax(0, 1fr);
      }
      .sidebar {
        display: none;
      }
    }
    .feed-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 1.5rem;
      flex-wrap: wrap;
      gap: 1rem;
    }
    .feed-title {
      font-family: var(--font-display);
      font-size: 1.35rem;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 0.6rem;
    }
    .feed-tools {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }
    .sort-select {
      background: var(--card-bg);
      border: 1px solid var(--card-border);
      color: var(--text-muted);
      border-radius: 8px;
      padding: 0.4rem 0.8rem;
      font-size: 0.82rem;
      outline: none;
      cursor: pointer;
    }
    /* Video Feed List */
    .video-grid {
      display: flex;
      flex-direction: column;
      gap: 1.75rem;
    }
    .video-card {
      background: var(--card-bg);
      border: 1px solid var(--card-border);
      border-radius: 16px;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      transition: transform 0.2s, border-color 0.2s;
    }
    .video-card:hover {
      border-color: #2e384d;
    }
    .video-container {
      position: relative;
      width: 100%;
      aspect-ratio: 16 / 9;
      background: #000;
      overflow: hidden;
    }
    .video-container video {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    /* Sensitive Blur Overlay */
    .sensitive-overlay {
      position: absolute;
      inset: 0;
      background: rgba(17, 20, 30, 0.9);
      backdrop-filter: blur(25px);
      -webkit-backdrop-filter: blur(25px);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 2rem;
      text-align: center;
      z-index: 10;
      transition: opacity 0.3s ease;
    }
    .sensitive-overlay.revealed {
      display: none;
    }
    .sensitive-icon {
      font-size: 2.2rem;
      margin-bottom: 0.6rem;
    }
    .sensitive-title {
      font-family: var(--font-display);
      font-size: 1.15rem;
      font-weight: 700;
      color: #fff;
      margin-bottom: 0.3rem;
    }
    .sensitive-desc {
      font-size: 0.82rem;
      color: var(--text-muted);
      max-width: 380px;
      margin-bottom: 1.25rem;
      line-height: 1.4;
    }
    .reveal-btn {
      background: rgba(255, 255, 255, 0.12);
      border: 1px solid rgba(255, 255, 255, 0.25);
      color: #fff;
      padding: 0.5rem 1.2rem;
      border-radius: 9999px;
      font-size: 0.82rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
    }
    .reveal-btn:hover {
      background: rgba(255, 255, 255, 0.25);
    }
    .video-tag {
      position: absolute;
      top: 0.75rem;
      left: 0.75rem;
      background: rgba(0, 0, 0, 0.75);
      backdrop-filter: blur(4px);
      border: 1px solid rgba(255, 255, 255, 0.1);
      padding: 0.25rem 0.6rem;
      border-radius: 6px;
      font-size: 0.72rem;
      font-weight: 600;
      color: #fff;
      z-index: 5;
    }
    .video-watermark {
      position: absolute;
      top: 0.75rem;
      right: 0.75rem;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      color: #fff;
      font-size: 0.72rem;
      font-weight: 700;
      text-decoration: none;
      background: rgba(10, 12, 18, 0.78);
      padding: 0.25rem 0.55rem;
      border-radius: 6px;
      border: 1px solid rgba(255, 51, 75, 0.3);
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
      z-index: 5;
      transition: all 0.2s ease;
      letter-spacing: 0.2px;
      opacity: 0.9;
    }
    .video-watermark:hover {
      opacity: 1;
      background: rgba(17, 20, 30, 0.95);
      border-color: #ff334b;
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(255, 51, 75, 0.35);
      color: #fff;
    }
    .video-watermark .watermark-logo {
      height: 14px;
      width: auto;
      display: block;
    }
    .video-watermark .watermark-text {
      display: inline-flex;
      align-items: center;
      gap: 3px;
    }
    .video-watermark .watermark-arrow {
      font-size: 9px;
      color: #ff334b;
      transition: transform 0.15s ease;
    }
    .video-watermark:hover .watermark-arrow {
      transform: translate(1px, -1px);
    }

    .video-info {
      padding: 1.25rem;
      display: flex;
      flex-direction: column;
    }
    .video-title {
      font-size: 1.15rem;
      font-weight: 700;
      line-height: 1.4;
      margin-bottom: 0.5rem;
      color: #fff;
    }
    .video-meta {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      font-size: 0.8rem;
      color: var(--text-muted);
      margin-bottom: 0.85rem;
      flex-wrap: wrap;
    }
    .video-meta .location {
      color: var(--accent-orange);
      display: flex;
      align-items: center;
      gap: 0.25rem;
      font-weight: 500;
    }
    .video-description {
      font-size: 0.88rem;
      color: #cbd5e1;
      line-height: 1.5;
      margin-bottom: 1.25rem;
    }
    .video-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-top: 1px solid var(--card-border);
      padding-top: 0.95rem;
      flex-wrap: wrap;
      gap: 0.5rem;
    }
    .author-info {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    .avatar {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: linear-gradient(135deg, #4f46e5, #06b6d4);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.75rem;
      font-weight: 700;
    }
    .author-name {
      font-size: 0.82rem;
      font-weight: 500;
      color: #e2e8f0;
    }
    .action-buttons {
      display: flex;
      align-items: center;
      gap: 0.4rem;
    }
    .action-btn {
      background: transparent;
      border: 1px solid var(--card-border);
      color: var(--text-muted);
      border-radius: 8px;
      padding: 0.35rem 0.65rem;
      font-size: 0.8rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 0.3rem;
      transition: all 0.2s;
    }
    /* Elegant hover expansion: icon/number is always visible, text reveals on hover */
    .action-btn .btn-label {
      max-width: 0;
      opacity: 0;
      overflow: hidden;
      white-space: nowrap;
      transition: max-width 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, margin 0.2s ease;
      margin-left: 0;
      display: inline-block;
      vertical-align: middle;
    }
    .action-btn:hover .btn-label,
    .action-btn:focus-visible .btn-label {
      max-width: 80px;
      opacity: 1;
      margin-left: 4px;
    }
    .action-btn:hover {
      border-color: #3b455d;
      color: #fff;
      background: rgba(255, 255, 255, 0.05);
    }
    .action-btn.embed-btn {
      background: rgba(147, 51, 234, 0.1);
      border-color: rgba(147, 51, 234, 0.3);
      color: #c084fc;
      font-weight: 600;
    }
    .action-btn.embed-btn:hover {
      background: rgba(147, 51, 234, 0.25);
      border-color: #a855f7;
      color: #fff;
    }
    .action-btn.share-btn {
      background: rgba(56, 189, 248, 0.08);
      border-color: rgba(56, 189, 248, 0.35);
      color: #38bdf8;
      font-weight: 600;
    }
    .action-btn.share-btn:hover {
      border-color: #38bdf8;
      color: #fff;
      background: #0284c7;
      box-shadow: 0 0 12px rgba(56, 189, 248, 0.45);
      transform: translateY(-1px);
    }
    .action-btn.delete-uploader-btn {
      color: var(--accent-red) !important;
      border-color: rgba(255, 51, 75, 0.4) !important;
      background: rgba(255, 51, 75, 0.12) !important;
      transition: all 0.2s ease;
    }
    .action-btn.delete-uploader-btn:hover {
      background: var(--accent-red) !important;
      color: #ffffff !important;
      border-color: var(--accent-red) !important;
      box-shadow: 0 0 10px rgba(255, 51, 75, 0.45);
      transform: translateY(-1px);
    }
    /* Embed Code Preview Box */
    .embed-code-box {
      background: #090a0f;
      border: 1px solid var(--card-border);
      border-radius: 8px;
      padding: 0.85rem;
      font-family: monospace;
      font-size: 0.8rem;
      color: #38bdf8;
      word-break: break-all;
      margin-bottom: 1rem;
      user-select: all;
    }
    .embed-options {
      display: flex;
      gap: 1.25rem;
      margin-bottom: 1.25rem;
      font-size: 0.82rem;
      color: var(--text-muted);
    }
    .copy-success {
      color: #4ade80;
      font-size: 0.82rem;
      font-weight: 600;
      display: none;
      align-items: center;
      gap: 0.4rem;
      margin-top: 0.5rem;
    }
    .action-btn.report-btn:hover {
      border-color: var(--accent-red);
      color: var(--accent-red);
      background: rgba(255, 51, 75, 0.1);
    }
    /* Native In-Feed Sponsored Card */
    .sponsored-card {
      background: #0f121b;
      border: 1px solid #1f2738;
      border-radius: 16px;
      padding: 1.5rem;
      position: relative;
      display: flex;
      gap: 1.5rem;
      align-items: center;
    }
    .sponsored-badge {
      position: absolute;
      top: 0.75rem;
      right: 0.9rem;
      font-size: 0.65rem;
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid var(--card-border);
      padding: 0.15rem 0.5rem;
      border-radius: 4px;
      color: #94a3b8;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }
    .sponsored-img {
      width: 130px;
      height: 95px;
      background: #1e293b;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 2.2rem;
      flex-shrink: 0;
    }
    .sponsored-body h4 {
      font-size: 1.05rem;
      color: #fff;
      margin-bottom: 0.35rem;
    }
    .sponsored-body p {
      font-size: 0.85rem;
      color: var(--text-muted);
      line-height: 1.4;
      margin-bottom: 0.85rem;
    }
    /* YouTube/Reddit Style Combined Like/Dislike Pill */
    .vote-pill {
      display: inline-flex;
      align-items: center;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid var(--card-border);
      border-radius: 9999px;
      overflow: hidden;
      transition: all 0.2s ease;
    }
    .vote-btn {
      background: transparent;
      border: none;
      color: var(--text-muted);
      padding: 0.38rem 0.7rem;
      font-size: 0.82rem;
      font-weight: 600;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      transition: all 0.2s ease;
    }
    .vote-btn:hover {
      background: rgba(255, 255, 255, 0.08);
      color: #fff;
    }
    .vote-btn.liked {
      color: #22c55e;
      background: rgba(34, 197, 94, 0.15);
    }
    .vote-btn.disliked {
      color: #ef4444;
      background: rgba(239, 68, 68, 0.15);
    }
    .vote-divider {
      width: 1px;
      height: 16px;
      background: var(--card-border);
    }
    /* Enhanced Comments Section */
    /* Action Buttons: Like, Dislike, Comment, Delete */
    .action-btn.active-like {
      background: rgba(34, 197, 94, 0.15);
      border-color: #22c55e;
      color: #4ade80;
    }
    .action-btn.active-dislike {
      background: rgba(239, 68, 68, 0.15);
      border-color: #ef4444;
      color: #f87171;
    }
    /* YouTube Style Clean Comment Box */
    .add-comment-box {
      display: flex;
      gap: 0.85rem;
      align-items: flex-start;
      margin-bottom: 1.15rem;
      padding-bottom: 0.5rem;
    }
    .comment-avatar-yt {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: #0f141f;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden !important;
      flex-shrink: 0;
      margin-top: 2px;
      border: 1.5px solid rgba(255, 255, 255, 0.14);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
      box-sizing: border-box;
    }
    .comment-avatar-yt img {
      width: 100% !important;
      height: 100% !important;
      object-fit: cover !important;
      border-radius: 50% !important;
      display: block !important;
    }
    .comment-field-yt {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }
    /* comment input — accent red underline v2 */
    .comment-input {
      width: 100%;
      min-height: 1.4em;
      height: 1.4em;
      background: transparent;
      border: none;
      border-bottom: 2px solid rgba(255, 51, 75, 0.55);
      border-radius: 0;
      padding: 0;
      color: #fff;
      font-family: inherit;
      font-size: 0.92rem;
      line-height: 1.4;
      outline: none;
      resize: none;
      overflow: hidden;
      transition: border-bottom-color 0.2s;
      box-sizing: border-box;
    }
    .comment-input:focus {
      border-bottom: 2px solid var(--accent-red);
      background: transparent;
      box-shadow: none;
    }
    .comment-toolbar-yt {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 0.5rem;
      padding-top: 0.25rem;
    }
    .comment-emojis-yt {
      display: flex;
      align-items: center;
      gap: 0.25rem;
      flex-wrap: wrap;
    }
    .emoji-btn-yt {
      cursor: pointer;
      font-size: 1.05rem;
      padding: 0.25rem 0.35rem;
      border-radius: 6px;
      line-height: 1;
      user-select: none;
      transition: transform 0.15s ease, background 0.15s ease;
      opacity: 0.85;
    }
    .emoji-btn-yt:hover {
      transform: scale(1.15);
      background: rgba(255, 255, 255, 0.08);
      opacity: 1;
    }
    .comment-buttons-yt {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-left: auto;
    }
    .comment-cancel-btn-yt {
      background: transparent;
      border: none;
      color: var(--text-muted);
      font-size: 0.84rem;
      font-weight: 600;
      padding: 0.45rem 0.85rem;
      border-radius: 6px;
      cursor: pointer;
      transition: color 0.15s, background 0.15s;
    }
    .comment-cancel-btn-yt:hover {
      color: #fff;
      background: rgba(255, 255, 255, 0.08);
    }
    .comment-submit-btn {
      background: var(--accent-red);
      color: #fff;
      border: none;
      border-radius: 18px;
      padding: 0.5rem 1.25rem;
      font-size: 0.85rem;
      font-weight: 700;
      cursor: pointer;
      white-space: nowrap;
      box-shadow: 0 2px 10px rgba(255, 51, 75, 0.3);
      transition: all 0.2s ease;
    }
    .comment-submit-btn:hover {
      filter: brightness(1.15);
      transform: translateY(-1px);
    }
    .comment-item {
      display: flex;
      align-items: flex-start;
      gap: 0.75rem;
      padding: 0.65rem 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
      position: relative;
    }
    .comment-avatar {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: var(--accent-red);
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 0.75rem;
      color: #fff;
      flex-shrink: 0;
      overflow: hidden;
    }
    .comment-bubble {
      flex: 1;
      min-width: 0;
      background: rgba(255, 255, 255, 0.02);
      border: 1px solid var(--card-border);
      border-radius: 12px;
      padding: 0.65rem 0.9rem;
      transition: border-color 0.15s ease, background 0.15s ease;
    }
    .comment-item:hover .comment-bubble {
      background: rgba(255, 255, 255, 0.035);
      border-color: rgba(255, 255, 255, 0.15);
    }
    .comment-header-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.5rem;
      margin-bottom: 0.3rem;
    }
    .comment-author {
      font-weight: 700;
      font-size: 0.82rem;
      color: #fff;
    }
    .comment-date {
      font-size: 0.7rem;
      color: var(--text-muted);
    }
    .comment-text {
      font-size: 0.83rem;
      color: #cbd5e1;
      line-height: 1.5;
      word-break: break-word;
    }
    .comment-actions-group {
      display: flex;
      align-items: center;
      gap: 0.45rem;
    }
    /* Comment Footer Bar: YouTube-style views & likes */
    .comment-footer-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
      margin-top: 0.45rem;
      padding-top: 0.35rem;
      border-top: 1px solid rgba(255, 255, 255, 0.05);
      font-size: 0.72rem;
      color: var(--text-muted);
    }
    .comment-meta-left {
      display: flex;
      align-items: center;
      gap: 0.65rem;
    }
    .comment-stat-pill {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.09);
      border-radius: 8px;
      padding: 0.22rem 0.55rem;
      cursor: pointer;
      color: #94a3b8;
      transition: all 0.18s ease;
      font-weight: 600;
      font-size: 0.73rem;
    }
    .c-stat-ico {
      width: 14px;
      height: 14px;
      fill: none;
      stroke: var(--accent-red);
      stroke-width: 2.2;
      stroke-linecap: round;
      stroke-linejoin: round;
      flex-shrink: 0;
      transition: stroke 0.18s ease, transform 0.18s ease;
    }
    .comment-stat-pill:hover {
      background: rgba(255, 51, 75, 0.12);
      border-color: rgba(255, 51, 75, 0.4);
      color: #fff;
    }
    .comment-stat-pill:hover .c-stat-ico {
      stroke: #fff;
      transform: scale(1.1);
    }
    .comment-stat-pill.liked {
      background: rgba(255, 51, 75, 0.2);
      border-color: var(--accent-red);
      color: #fff;
    }
    .comment-stat-pill.liked .c-stat-ico {
      fill: var(--accent-red);
      stroke: var(--accent-red);
    }
    .comment-stat-pill.is-prem-btn {
      color: #38bdf8;
      border-color: rgba(56, 189, 248, 0.3);
    }
    .comment-stat-pill.is-prem-btn:hover {
      background: rgba(56, 189, 248, 0.15);
      border-color: #38bdf8;
      color: #fff;
    }
    .comment-action-pill {
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.1);
      font-size: 0.74rem;
      font-weight: 600;
      cursor: pointer;
      padding: 0.22rem 0.55rem;
      border-radius: 6px;
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      transition: all 0.2s ease;
    }
    .comment-edit-btn {
      color: var(--accent-red);
      border-color: rgba(255, 51, 75, 0.3);
    }
    .comment-edit-btn:hover {
      background: rgba(255, 51, 75, 0.15);
      border-color: var(--accent-red);
      color: #ff6677;
      transform: translateY(-1px);
    }
    .comment-delete-btn {
      color: var(--accent-red);
      border-color: rgba(255, 51, 75, 0.3);
    }
    .comment-delete-btn:hover {
      background: rgba(255, 51, 75, 0.15);
      border-color: var(--accent-red);
      color: #ff6677;
      transform: translateY(-1px);
    }
    .comment-edit-box {
      margin-top: 0.5rem;
      display: flex;
      flex-direction: column;
      gap: 0.45rem;
    }
    .comment-edit-textarea {
      width: 100%;
      background: #090a0f;
      border: 1px solid #3b4252;
      border-radius: 6px;
      padding: 0.5rem 0.75rem;
      color: #fff;
      font-family: inherit;
      font-size: 0.85rem;
      line-height: 1.4;
      outline: none;
      resize: vertical;
      box-sizing: border-box;
      transition: border-color 0.2s;
    }
    .comment-edit-textarea:focus {
      border-color: var(--accent-red);
    }
    .comment-edit-btns {
      display: flex;
      justify-content: flex-end;
      gap: 0.4rem;
    }
    .comments-drawer {
      margin-top: 1.25rem;
      padding-top: 1.25rem;
      border-top: 1px solid var(--card-border);
      display: none;
      animation: fadeIn 0.2s ease;
    }
    .comments-drawer.open {
      display: block;
    }
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(-5px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .comment-input-wrapper {
      display: flex;
      gap: 0.75rem;
      margin-bottom: 1.25rem;
    }
    .user-avatar-sm {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: var(--accent-red);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.75rem;
      font-weight: 700;
      flex-shrink: 0;
    }
    .comment-box-field {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }
    .comment-textarea {
      width: 100%;
      background: #090a0f;
      border: 1px solid var(--card-border);
      border-radius: 8px;
      padding: 0.65rem 0.85rem;
      color: #fff;
      font-family: inherit;
      font-size: 0.85rem;
      outline: none;
      resize: vertical;
      min-height: 42px;
      transition: border-color 0.2s;
    }
    .comment-textarea:focus {
      border-color: var(--accent-red);
    }
    .comment-actions-bar {
      display: flex;
      justify-content: flex-end;
    }
    .comment-btn-submit {
      background: var(--accent-red);
      color: #fff;
      border: none;
      border-radius: 6px;
      padding: 0.4rem 0.9rem;
      font-size: 0.8rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
    }
    .comment-btn-submit:hover {
      filter: brightness(1.15);
    }
    .comment-list {
      display: flex;
      flex-direction: column;
      gap: 0.85rem;
    }
    .comment-item {
      display: flex;
      gap: 0.75rem;
      font-size: 0.82rem;
    }
    .comment-avatar {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: #1e293b;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 0.72rem;
      flex-shrink: 0;
    }
    .comment-bubble {
      background: #0d0f17;
      border: 1px solid var(--card-border);
      padding: 0.65rem 0.9rem;
      border-radius: 10px;
      flex: 1;
    }
    .comment-topline {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 0.25rem;
    }
    .comment-author-name {
      font-weight: 700;
      color: #fff;
    }
    .comment-badge {
      font-size: 0.65rem;
      font-weight: 700;
      padding: 0.1rem 0.4rem;
      border-radius: 4px;
      text-transform: uppercase;
    }
    .badge-verified {
      background: rgba(34, 197, 94, 0.15);
      color: #4ade80;
      border: 1px solid rgba(34, 197, 94, 0.3);
    }
    .comment-timestamp {
      color: var(--text-muted);
      font-size: 0.72rem;
    }
    .comment-body-text {
      color: #cbd5e1;
      line-height: 1.45;
      margin-bottom: 0.4rem;
    }
    .comment-footer-actions {
      display: flex;
      align-items: center;
      gap: 0.85rem;
      font-size: 0.75rem;
      color: var(--text-muted);
    }
    .comment-heart-btn {
      background: transparent;
      border: none;
      color: var(--text-muted);
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 0.25rem;
      transition: color 0.2s;
    }
    .comment-heart-btn:hover, .comment-heart-btn.active {
      color: #ff334b;
    }
    /* Sidebar Components */
    .sidebar-widget {
      background: var(--card-bg);
      border: 1px solid var(--card-border);
      border-radius: 16px;
      padding: 1.25rem;
      margin-bottom: 1.5rem;
    }
    .sidebar-title {
      font-family: var(--font-display);
      font-size: 1rem;
      font-weight: 700;
      color: #fff;
      margin-bottom: 0.85rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    .trending-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0.6rem 0;
      border-bottom: 1px solid var(--card-border);
      font-size: 0.82rem;
      cursor: pointer;
      transition: color 0.2s;
    }
    .trending-item:hover .trending-tag {
      color: var(--accent-red);
    }
    .trending-item:last-child {
      border-bottom: none;
    }
    .trending-tag {
      color: #e2e8f0;
      font-weight: 600;
    }
    .trending-count {
      color: var(--text-muted);
      font-size: 0.75rem;
    }
    .brand-safety-box {
      background: rgba(34, 197, 94, 0.05);
      border: 1px solid rgba(34, 197, 94, 0.2);
      border-radius: 12px;
      padding: 1rem;
      font-size: 0.8rem;
      line-height: 1.5;
      color: #cbd5e1;
    }
    .brand-safety-box strong {
      color: #4ade80;
    }
    /* Modal Styling */
    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.82);
      backdrop-filter: blur(8px);
      z-index: 5000;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 1.5rem;
    }
    .modal-overlay.active {
      display: flex;
    }
    .modal-box {
      background: var(--card-bg);
      border: 1px solid var(--card-border);
      border-radius: 16px;
      max-width: 520px;
      width: 100%;
      padding: 2rem;
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
      position: relative;
      max-height: 90vh;
      overflow-y: auto;
    }
    .modal-close {
      position: absolute;
      top: 1.25rem;
      right: 1.25rem;
      background: transparent;
      border: none;
      color: var(--text-muted);
      font-size: 1.3rem;
      cursor: pointer;
    }
    .modal-title {
      font-family: var(--font-display);
      font-size: 1.4rem;
      font-weight: 700;
      margin-bottom: 0.4rem;
    }
    .modal-subtitle {
      font-size: 0.85rem;
      color: var(--text-muted);
      margin-bottom: 1.5rem;
      line-height: 1.5;
    }
    .form-group {
      margin-bottom: 1.15rem;
    }
    .form-label {
      display: block;
      font-size: 0.82rem;
      font-weight: 600;
      color: #cbd5e1;
      margin-bottom: 0.4rem;
    }
    .form-input, .form-textarea, .form-select {
      width: 100%;
      background: #090a0f;
      border: 1px solid var(--card-border);
      border-radius: 8px;
      padding: 0.65rem 0.9rem;
      color: #fff;
      font-family: inherit;
      font-size: 0.9rem;
      outline: none;
      transition: border-color 0.2s;
    }
    select, .form-select, .sort-select {
      background-color: #0d1019 !important;
      color: #ffffff !important;
    }
    select option, .form-select option, .sort-select option {
      background-color: #0d1019 !important;
      color: #ffffff !important;
    }
    select option:checked, select option:hover {
      background-color: #1a2030 !important;
      color: #ffffff !important;
    }
    .form-input:focus, .form-textarea:focus, .form-select:focus {
      border-color: var(--accent-red);
    }
    .file-dropzone {
      border: 2px dashed var(--card-border);
      border-radius: 10px;
      padding: 2rem 1rem;
      text-align: center;
      cursor: pointer;
      background: #090a0f;
      transition: all 0.2s;
    }
    .file-dropzone:hover {
      border-color: var(--accent-red);
      background: rgba(255, 51, 75, 0.03);
    }
    .file-dropzone-icon {
      font-size: 2.2rem;
      color: var(--text-muted);
      margin-bottom: 0.5rem;
    }
    .legal-content {
      font-size: 0.85rem;
      color: #cbd5e1;
      line-height: 1.6;
      max-height: 60vh;
      overflow-y: auto;
      padding-right: 0.5rem;
    }
    .legal-content h4 {
      color: #fff;
      margin: 1.25rem 0 0.4rem 0;
      font-size: 0.95rem;
    }
    .legal-content p, .legal-content ul {
      margin-bottom: 0.85rem;
    }
    .legal-content ul {
      padding-left: 1.2rem;
    }
    /* Footer */
    footer {
      background: #07080b;
      border-top: 1px solid var(--card-border);
      padding: 2.5rem 1.5rem 2rem 1.5rem;
      text-align: center;
      font-size: 0.82rem;
      color: #64748b;
      margin-top: auto;
    }
    .footer-links {
      display: flex;
      justify-content: center;
      gap: 1.5rem;
      margin-bottom: 1.25rem;
      flex-wrap: wrap;
    }
    .footer-links a {
      color: var(--text-muted);
      text-decoration: none;
      transition: color 0.2s, text-decoration 0.2s;
      cursor: pointer;
    }
    .footer-links a:hover {
      color: var(--accent-red);
      text-decoration: underline;
    }
    .compliance-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.6rem;
      padding: 0.4rem 0.9rem;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid var(--card-border);
      border-radius: 8px;
      font-size: 0.78rem;
      color: #94a3b8;
      margin-bottom: 1.25rem;
      flex-wrap: wrap;
      justify-content: center;
      transition: all 0.2s ease;
    }
    .compliance-badge:hover {
      border-color: rgba(255, 255, 255, 0.16);
      background: rgba(255, 255, 255, 0.06);
    }
    .compliance-badge a {
      color: #cbd5e1;
      text-decoration: none;
      transition: color 0.2s;
      cursor: pointer;
    }
    .compliance-badge a:hover {
      color: #fff;
      text-decoration: underline;
    }
    .compliance-badge .compliance-link-highlight {
      color: var(--accent-red);
      font-weight: 600;
    }
    .compliance-badge .compliance-link-highlight:hover {
      color: #ff5c6a;
      text-decoration: underline;
    }
    /* Owner Moderation Controls */
    .owner-badge {
      display: none;
      background: rgba(255, 51, 75, 0.15);
      border: 1px solid var(--accent-red);
      color: var(--accent-red);
      font-size: 0.72rem;
      font-weight: 700;
      padding: 0.2rem 0.5rem;
      border-radius: 4px;
      margin-left: 0.5rem;
    }
    .owner-active .owner-badge {
      display: inline-block;
    }
    .owner-controls {
      display: none;
      background: rgba(239, 68, 68, 0.12);
      border-top: 1px dashed rgba(239, 68, 68, 0.35);
      padding: 0.5rem 1rem;
      align-items: center;
      justify-content: space-between;
      gap: 0.5rem;
    }
    .owner-active .owner-controls {
      display: flex !important;
    }
    .owner-delete-btn {
      background: #dc2626;
      color: #fff;
      border: none;
      padding: 0.3rem 0.65rem;
      border-radius: 6px;
      font-size: 0.75rem;
      font-weight: 700;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 0.35rem;
      transition: background 0.15s;
    }
    .owner-delete-btn:hover {
      background: #b91c1c;
    }
    .owner-flag-btn {
      background: #d97706;
      color: #fff;
      border: none;
      padding: 0.3rem 0.65rem;
      border-radius: 6px;
      font-size: 0.75rem;
      font-weight: 700;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 0.35rem;
    }
    /* Logo fallback if logo.png is missing */
    .brand-fallback { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: #fff; }
    /* Mobile header: two clean rows (logo + actions, then search) */
    @media (max-width: 768px) {
      header {
        flex-wrap: wrap;
        gap: 0.45rem 0.4rem;
        padding: 0.5rem 0.65rem;
        overflow: visible;
        z-index: 1000;
      }
      .brand {
        order: 1;
        gap: 0.3rem;
        flex-shrink: 0;
      }
      .brand-logo-img {
        height: 32px;
        width: auto;
      }
      .nav-actions {
        order: 2;
        margin-left: auto;
        gap: 0.35rem;
        display: flex;
        align-items: center;
        flex-shrink: 0;
      }
      .nav-search {
        order: 3;
        flex: 1 1 100%;
        max-width: none;
        margin-top: 0.15rem;
      }
      .nav-search input {
        padding: 0.48rem 0.75rem 0.48rem 2rem;
        font-size: 0.82rem;
      }
      /* Hide secondary header buttons on phones (accessible via footer / studio / pricing) */
      .nav-actions .nav-radio-btn,
      .nav-actions .nav-founder-btn,
      .nav-actions a[href*="/ada"],
      .nav-actions a[href*="pricing"],
      .nav-actions .nav-tip-btn,
      .nav-actions a[href*="reddit.com"] {
        display: none !important;
      }
      
      /* Mobile Members icon button: compact, perfectly aligned */
      .nav-actions .nav-members-btn {
        display: inline-flex !important;
        width: 34px !important;
        height: 34px !important;
        padding: 0 !important;
        justify-content: center !important;
        align-items: center !important;
        flex-shrink: 0;
        border-radius: 9999px !important;
      }
      .nav-actions .nav-members-btn span {
        display: none !important;
      }
      .nav-actions .nav-members-btn .nav-ico {
        width: 17px !important;
        height: 17px !important;
        stroke: #ff334b !important;
      }

      /* Mobile Notifications Bell: compact and glowing badge */
      .nav-actions .user-notif-wrapper {
        display: inline-flex !important;
      }
      .nav-actions #userBellBtn {
        width: 34px !important;
        height: 34px !important;
        padding: 0 !important;
        display: inline-flex !important;
        justify-content: center !important;
        align-items: center !important;
        border-radius: 9999px !important;
      }
      .nav-actions #userBellBtn .nav-ico {
        width: 17px !important;
        height: 17px !important;
        stroke: #ff334b !important;
      }
      .user-bell-badge {
        background: #ff334b !important;
        color: #ffffff !important;
        font-weight: 800 !important;
        box-shadow: 0 0 10px rgba(255, 51, 75, 0.85) !important;
        border: 2px solid #0b0d14 !important;
      }

      
      /* Fix notifications dropdown on mobile so breaking banner never overlaps or cuts it */
      .user-notif-dropdown {
        z-index: 99999 !important;
        position: absolute !important;
        right: 0 !important;
        top: calc(100% + 8px) !important;
        width: min(320px, calc(100vw - 20px)) !important;
        box-shadow: 0 16px 45px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.16) !important;
      }
      .user-notif-wrapper {
        position: relative !important;
        z-index: 10001 !important;
      }
      .breaking-banner {
        z-index: 40 !important;
      }

      /* Keep Upload and Join/Account clean, visible, and never cut off from edge */
      .nav-actions .btn-upload.nav-btn-primary {
        height: 34px !important;
        padding: 0 0.65rem !important;
        font-size: 0.76rem !important;
        font-weight: 700;
        white-space: nowrap !important;
        flex-shrink: 0;
        display: inline-flex !important;
        align-items: center;
        gap: 4px;
      }
      .nav-actions .btn-upload.nav-btn-primary .upload-text-full { display: none !important; }
      .nav-actions .btn-upload.nav-btn-primary .upload-text-short { display: inline !important; }
      .nav-actions .nav-account-btn {
        height: 34px !important;
        padding: 0 0.75rem !important;
        font-size: 0.76rem !important;
        font-weight: 700;
        white-space: nowrap !important;
        flex-shrink: 0;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.18) !important;
        border-radius: 9999px !important;
      }
      .nav-actions .nav-account-btn.is-signed-in {
        width: 34px !important;
        padding: 0 !important;
      }
    }

    /* ========================================================
       COMPREHENSIVE MOBILE OPTIMIZATIONS (PHONE & TABLET)
       ======================================================== */
    @media (max-width: 768px) {
      /* Smooth horizontal category swipe ribbon */
      .filter-bar {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0.5rem 0.75rem !important;
        gap: 0.4rem !important;
      }
      .filter-bar::-webkit-scrollbar {
        display: none;
      }
      .filter-chip {
        flex-shrink: 0;
        padding: 0.38rem 0.65rem 0.32rem !important;
        min-width: 50px !important;
      }
      .filter-chip .fc-icon {
        font-size: 1.05rem !important;
      }
      .filter-chip .fc-label {
        font-size: 0.6rem !important;
      }

      /* Live streams horizontal reel with swipe snap */
      .live-streams-section {
        padding: 1rem 0 !important;
      }
      .live-section-container {
        padding: 0 0.75rem !important;
      }
      .live-heading {
        font-size: 1rem !important;
      }
      .live-grid {
        display: flex !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 0.75rem !important;
        padding-bottom: 0.5rem;
        scrollbar-width: thin;
      }
      .live-card {
        flex: 0 0 82% !important;
        max-width: 320px;
        scroll-snap-align: start;
      }

      /* Main layout container */
      .layout-container {
        padding: 0.85rem 0.75rem !important;
        gap: 1.25rem !important;
      }
      .section-divider {
        padding: 0 0.75rem !important;
        margin-top: 1rem !important;
      }

      /* Feed header & tools */
      .feed-header {
        margin-bottom: 1rem !important;
        gap: 0.6rem !important;
      }
      .feed-title {
        font-size: 1.15rem !important;
      }
      .feed-tools {
        width: 100%;
        justify-content: space-between;
      }
      .sort-select {
        font-size: 0.78rem !important;
        padding: 0.35rem 0.6rem !important;
      }

      /* Leaflet incident map */
      #liveMapContainer {
        height: 360px !important;
        max-height: 52vh !important;
        border-radius: 12px !important;
      }

      /* Video cards */
      .video-card {
        border-radius: 12px !important;
      }
      .video-body {
        padding: 0.85rem !important;
      }
      .video-title {
        font-size: 1.02rem !important;
      }
      .video-description {
        font-size: 0.82rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.85rem !important;
      }
      .video-footer {
        gap: 0.5rem !important;
        padding-top: 0.75rem !important;
      }
      .action-buttons {
        flex-wrap: wrap !important;
        gap: 0.3rem !important;
        width: 100%;
        justify-content: flex-start;
      }
      .action-btn {
        padding: 0.32rem 0.55rem !important;
        font-size: 0.74rem !important;
        border-radius: 6px !important;
      }

      /* Modals: bottom-sheet feel on mobile */
      .modal-overlay {
        padding: 0 !important;
        align-items: flex-end !important;
      }
      .modal-box {
        max-height: 88vh !important;
        border-radius: 20px 20px 0 0 !important;
        padding: 1.5rem 1.2rem calc(1.5rem + env(safe-area-inset-bottom, 0px)) !important;
        max-width: 100% !important;
        width: 100% !important;
      }
      .modal-title {
        font-size: 1.2rem !important;
      }

      /* Leaderboard Ad */
      .ad-leaderboard-container {
        padding: 0 0.75rem !important;
        margin-top: 0.75rem !important;
      }
      .ad-leaderboard {
        padding: 0.75rem !important;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
      }
      .ad-cta-btn {
        width: 100%;
        text-align: center;
      }

      /* Footer */
      footer {
        padding: 2rem 1rem calc(2rem + env(safe-area-inset-bottom, 0px)) !important;
      }
      .footer-links {
        gap: 0.85rem !important;
      }
    }

    @media (max-width: 480px) {
      .live-badge { display: none; }
      .brand-logo-img { height: 34px !important; }
      #liveMapContainer {
        height: 320px !important;
        max-height: 48vh !important;
      }
      .action-btn {
        padding: 0.28rem 0.48rem !important;
        font-size: 0.7rem !important;
      }
    }

/* Dark Theme for Leaflet OpenStreetMap */
#leafletMap .leaflet-tile-pane {
  filter: invert(100%) hue-rotate(180deg) brightness(90%) contrast(90%) grayscale(25%);
}
#leafletMap .leaflet-container {
  background: #090a0f !important;
}
.custom-pulse-marker div {
  animation: markerPulse 2s infinite ease-in-out;
}
@keyframes markerPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 51, 75, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 10px rgba(255, 51, 75, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 51, 75, 0); }
}

/* ============================================================
   ATTENTION-GRABBING EYE-CATCHING BREAKING TICKER BANNER
   ============================================================ */
.breaking-banner {
  position: relative;
  z-index: 50;
  width: 100%;
  padding: 0.55rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 2px solid #ff334b;
  box-shadow: 0 4px 25px rgba(255, 51, 75, 0.35);
  overflow: hidden;
  animation: breakingBannerGlow 3s infinite alternate ease-in-out;
}

.breaking-banner.theme-danger {
  background: linear-gradient(90deg, #990012 0%, #dc2626 35%, #b91c1c 70%, #7f1d1d 100%);
  border-bottom-color: #ff334b;
}

.breaking-banner.theme-warning {
  background: linear-gradient(90deg, #78350f 0%, #d97706 40%, #b45309 80%, #78350f 100%);
  border-bottom-color: #fbbf24;
  box-shadow: 0 4px 25px rgba(245, 158, 11, 0.35);
}

.breaking-banner.theme-info {
  background: linear-gradient(90deg, #075985 0%, #0284c7 40%, #0369a1 80%, #0c4a6e 100%);
  border-bottom-color: #38bdf8;
  box-shadow: 0 4px 25px rgba(56, 189, 248, 0.35);
}

@keyframes breakingBannerGlow {
  0% {
    box-shadow: 0 3px 18px rgba(255, 51, 75, 0.3);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 6px 32px rgba(255, 51, 75, 0.65), inset 0 0 15px rgba(255, 255, 255, 0.12);
    filter: brightness(1.12);
  }
  100% {
    box-shadow: 0 3px 18px rgba(255, 51, 75, 0.3);
    filter: brightness(1);
  }
}

/* Continuous Marquee Ticker Track */
.breaking-ticker-wrapper {
  width: 100%;
  overflow: hidden;
  display: flex;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
}

.breaking-ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  white-space: nowrap;
  will-change: transform;
  animation: breakingTickerScroll 36s linear infinite;
}

@keyframes breakingTickerScroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.breaking-ticker-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.breaking-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 1.15rem;
  padding: 0 4.5rem; /* Spacious professional distance between alerts */
  flex-shrink: 0;
}

.breaking-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(10, 10, 14, 0.88);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 51, 75, 0.45);
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6), inset 0 0 10px rgba(255, 51, 75, 0.15);
  flex-shrink: 0;
}

.breaking-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ff334b;
  box-shadow: 0 0 10px #ff334b;
  animation: pulseDotAnim 1.2s infinite ease-in-out;
}

@keyframes pulseDotAnim {
  0% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(255, 51, 75, 0.8); }
  50% { transform: scale(1.35); opacity: 1; box-shadow: 0 0 16px 5px rgba(255, 51, 75, 0.95); }
  100% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(255, 51, 75, 0); }
}

.breaking-headline-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  letter-spacing: -0.015em;
  display: inline-flex;
  align-items: center;
}

.breaking-highlight-tag {
  display: inline-flex;
  align-items: center;
  color: #fef08a;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(254, 240, 138, 0.55);
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-shadow: 0 0 10px rgba(254, 240, 138, 0.65);
  margin-left: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  animation: pulseWarningGlow 1.8s infinite alternate ease-in-out;
}

@keyframes pulseWarningGlow {
  0% { box-shadow: 0 0 6px rgba(254, 240, 138, 0.3); border-color: rgba(254, 240, 138, 0.4); }
  100% { box-shadow: 0 0 14px rgba(254, 240, 138, 0.75); border-color: rgba(254, 240, 138, 0.9); }
}

.breaking-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #ffffff;
  color: #0f172a !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none !important;
  padding: 0.32rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  cursor: pointer;
}

.breaking-action-pill svg {
  transition: transform 0.2s ease;
  stroke: #ff334b;
}

.breaking-action-pill:hover {
  background: #090a0f;
  color: #ffffff !important;
  border-color: rgba(255, 51, 75, 0.75);
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 14px rgba(255, 51, 75, 0.5);
}

.breaking-action-pill:hover svg {
  transform: translateX(3px);
  stroke: #ff334b;
}

/* Custom Sleek Dark Tactical Scrollbars */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 51, 75, 0.45) #090a0f;
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #090a0f;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 51, 75, 0.45);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-red);
}
    /* Submit Tip header button: hidden on phones (still in sidebar + footer) */
    @media (max-width: 768px) {
      .nav-tip-btn { display: none !important; }
    }
    /* Members header button: hidden on phones (linked in footer) */
    @media (max-width: 768px) {
      .nav-members-btn { display: none !important; }
    }

    /* Search suggestions (autocomplete) */
    .search-autocomplete {
      position: absolute; top: calc(100% + 4px); left: 0; right: 0;
      background: #1a1d2e; border: 1px solid var(--card-border); border-radius: 12px;
      overflow: hidden; z-index: 999; box-shadow: 0 8px 24px rgba(0,0,0,0.5); display: none;
    }
    .search-autocomplete .ac-item {
      padding: 0.6rem 1rem; font-size: 0.88rem; color: #cbd5e1; cursor: pointer;
      display: flex; align-items: center; gap: 0.5rem; transition: background 0.15s;
    }
    .search-autocomplete .ac-item:hover,
    .search-autocomplete .ac-item.active { background: rgba(255,51,75,0.12); color: #fff; }
    .search-autocomplete .ac-icon { font-size: 0.8rem; opacity: 0.6; }

    /* ========================================================
       HEADER BUTTONS – one consistent system
       Same height, radius, type and border; only Upload is filled.
       ======================================================== */
    .nav-actions { gap: 0.5rem; }
    .nav-actions .nav-btn {
      height: 40px;
      padding: 0 0.95rem;
      gap: 0.45rem;
      border-radius: 10px;
      border: 1px solid rgba(255, 255, 255, 0.10);
      background: rgba(255, 255, 255, 0.04);
      color: #e5e7eb;
      font-family: var(--font-display);
      font-size: 0.84rem;
      font-weight: 700;
      letter-spacing: -0.01em;
      line-height: 1;
      white-space: nowrap;
      text-decoration: none;
      box-shadow: none;
      transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
    }
    .nav-actions .nav-btn:hover {
      background: rgba(255, 51, 75, 0.10);
      border-color: rgba(255, 51, 75, 0.45);
      color: #fff;
      transform: translateY(-1px);
    }
    .nav-actions .nav-btn:focus-visible {
      outline: 2px solid var(--accent-red);
      outline-offset: 2px;
    }
    .nav-ico {
      width: 16px; height: 16px; flex-shrink: 0;
      fill: none; stroke: var(--accent-red); stroke-width: 2;
      stroke-linecap: round; stroke-linejoin: round;
      transition: stroke 0.18s ease;
    }
    .nav-actions .nav-btn:hover .nav-ico { stroke: #fff; }
    .nav-ico-fill { fill: currentColor; stroke: none; }

    /* Icon-only (alerts bell) */
    .nav-actions .nav-btn-icon { width: 40px; padding: 0; justify-content: center; }
    .nav-actions .nav-btn-icon .nav-ico { width: 18px; height: 18px; }

    /* Primary action */
    .nav-actions .nav-btn-primary {
      background: var(--accent-red) !important;
      border-color: var(--accent-red);
      color: #fff !important;
      box-shadow: 0 4px 14px rgba(255, 51, 75, 0.30) !important;
    }
    .nav-actions .nav-btn-primary:hover {
      background: #ff1f3a !important;
      border-color: #ff1f3a;
      filter: none;
    }
    .nav-actions .nav-btn-primary .nav-ico { stroke: none; }

    /* Account */
    .nav-actions .nav-account-btn.is-signed-in { padding: 0 0.85rem 0 0.35rem; }
    .nav-avatar {
      width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
      border: 1px solid rgba(255, 255, 255, 0.18);
    }
    .nav-avatar-initial {
      display: inline-flex; align-items: center; justify-content: center;
      background: linear-gradient(135deg, #ff334b 0%, #7c3aed 100%);
      color: #fff; font-size: 0.78rem; font-weight: 800;
    }
    .nav-role-badge {
      font-size: 0.62rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
      color: #ffffff; background: #ff2a51;
      border: 1px solid #ff4d6d; border-radius: 6px; padding: 0.18rem 0.45rem;
      box-shadow: 0 0 12px rgba(255, 42, 81, 0.5);
    }
    .nav-divider { width: 1px; height: 24px; background: rgba(255, 255, 255, 0.10); margin: 0 0.15rem; }

    @media (max-width: 1100px) {
      .nav-actions .nav-btn { padding: 0 0.75rem; font-size: 0.8rem; }
    }
    @media (max-width: 768px) {
      .nav-actions { gap: 0.35rem; }
      .nav-actions .nav-btn { height: 36px; padding: 0 0.65rem; font-size: 0.75rem; }
      .nav-actions .nav-btn-icon { width: 36px; padding: 0; }
      .nav-actions .nav-account-btn.is-signed-in { padding: 0 0.6rem 0 0.25rem; }
      .nav-avatar { width: 26px; height: 26px; }
      .nav-role-badge, .nav-divider { display: none; }
    }
    @media (max-width: 768px) {
      /* Phones: icon-only Admin Hub, avatar-only account button */
      #modAdminLink span { display: none; }
      #modAdminLink.nav-btn { width: 36px; padding: 0; justify-content: center; }
      .nav-actions .nav-account-btn.is-signed-in { width: 36px; padding: 0; justify-content: center; }
      .nav-account-btn.is-signed-in > span:not(.nav-avatar) { display: none; }
    }
    @media (max-width: 640px) {
      /* Free space in mobile header: Reddit and Radio moved to footer/drawer */
      .nav-actions a[href*="reddit.com"] { display: none !important; }
      .nav-actions .nav-radio-btn span { display: none !important; }
      .nav-actions .nav-radio-btn { width: 36px; padding: 0; justify-content: center; }
      .nav-actions .nav-members-btn span { display: none !important; }
      .nav-actions .nav-members-btn { width: 36px; padding: 0; justify-content: center; }
      .nav-actions .nav-tip-btn span { display: none !important; }
      .nav-actions .nav-tip-btn { width: 36px; padding: 0; justify-content: center; }
      /* Ensure Upload Footage button never wraps text or breaks layout */
      .nav-actions .btn-upload.nav-btn-primary {
        white-space: nowrap !important;
        flex-shrink: 0;
        padding: 0 0.65rem;
      }
      .nav-actions .btn-upload.nav-btn-primary .upload-text-full { display: none; }
      .nav-actions .btn-upload.nav-btn-primary .upload-text-short { display: inline; }
    }
    @media (min-width: 641px) {
      .nav-actions .btn-upload.nav-btn-primary .upload-text-short { display: none; }
    }

    /* Account dropdown (header) */
    .account-menu {
      position: fixed; z-index: 1200; width: 270px; display: none;
      max-height: 80vh; overflow-y: auto;
      background: #11141e; border: 1px solid rgba(255,255,255,0.12); border-radius: 14px;
      box-shadow: 0 18px 40px rgba(0,0,0,0.6); padding: 0.4rem; font-family: var(--font-body);
    }
    .account-menu.open { display: block; animation: accMenuIn .14s ease-out; }
    @keyframes accMenuIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
    .account-menu-head { padding: 0.55rem 0.75rem 0.6rem; font-size: 0.78rem; color: var(--text-muted); border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 0.3rem; }
    .account-menu-head b { color: #fff; }
    .account-menu-item {
      width: 100%; display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0.8rem; margin: 2px 0; border-radius: 10px;
      transition: background 0.15s ease, color 0.15s ease;
      background: none; border: 0; color: #e5e7eb; font-size: 0.88rem; font-weight: 600; text-align: left; cursor: pointer; text-decoration: none;
    }
    .account-menu-item:hover, .account-menu-item.primary:hover { background: rgba(255,51,75,0.10); color: #fff; }
    .account-menu-item .nav-ico { width: 18px; height: 18px; }
    .account-menu-item span { display: flex; flex-direction: column; }
    .account-menu-item small { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; margin-top: 2px; }
    .account-menu-item.primary { background: none; }
    .account-menu-item.danger {
      color: #ff334b;
      margin-top: 0.25rem;
      border-radius: 10px;
      transition: all 0.18s ease;
    }
    .account-menu-item.danger .nav-ico { stroke: #ff334b; }
    .account-menu-item.danger:hover {
      background: rgba(255, 51, 75, 0.14) !important;
      color: #fff !important;
    }
    .account-menu-item.danger:hover .nav-ico { stroke: #fff; }
    .account-menu-sep { height: 1px; background: rgba(255,255,255,0.08); margin: 0.3rem 0.4rem; }
    .account-menu-label {
      padding: 0.3rem 0.75rem 0.2rem; font-size: 0.68rem; font-weight: 700;
      text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted);
    }
    .account-switch-row { display: flex; align-items: center; gap: 0.2rem; }
    .account-switch-btn { flex: 1; min-width: 0; padding: 0.45rem 0.65rem; }
    .account-switch-btn span {
      flex-direction: row; align-items: center; gap: 0.4rem;
      overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    .account-switch-avatar {
      width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
      border: 1px solid rgba(255,255,255,0.18);
    }
    .account-switch-avatar.is-initial {
      display: inline-flex; align-items: center; justify-content: center;
      background: linear-gradient(135deg, #ff334b 0%, #7c3aed 100%);
      color: #fff; font-size: 0.68rem; font-weight: 800;
    }
    .account-switch-role {
      font-style: normal; font-size: 0.6rem; font-weight: 800; text-transform: uppercase;
      color: var(--accent-red); background: rgba(255,51,75,0.14);
      border: 1px solid rgba(255,51,75,0.3); border-radius: 5px; padding: 0.08rem 0.32rem;
    }
    .account-remove-btn {
      flex-shrink: 0; width: 26px; height: 26px; border: 0; border-radius: 7px;
      background: transparent; color: var(--text-muted); font-size: 1rem; line-height: 1;
      cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    }
    .account-remove-btn:hover { background: rgba(255,51,75,0.14); color: #fca5a5; }

/* ── Category chips: same style as the header navigation buttons ── */
.filter-bar .filter-chip {
  flex-direction: row !important;
  height: 38px;
  padding: 0 0.85rem !important;
  gap: 0.45rem;
  min-width: 0 !important;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  color: #e5e7eb;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.filter-bar .filter-chip .fc-icon { display: inline-flex; font-size: 0 !important; line-height: 0; }
.filter-bar .filter-chip .fc-label {
  font-family: var(--font-display);
  font-size: 0.8rem !important;
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.01em;
  opacity: 1;
}
.fc-svg {
  width: 16px; height: 16px; flex-shrink: 0;
  fill: none; stroke: var(--accent-red); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: stroke 0.18s ease;
}
.filter-bar .filter-chip:hover {
  background: rgba(255, 51, 75, 0.10);
  border-color: rgba(255, 51, 75, 0.45);
  color: #fff;
  transform: translateY(-1px);
}
.filter-bar .filter-chip:hover .fc-svg { stroke: #fff; }
.filter-bar .filter-chip.active {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 51, 75, 0.30);
}
.filter-bar .filter-chip.active .fc-svg { stroke: #fff; }
.filter-dropdown-item { display: flex; align-items: center; gap: 0.55rem; }
.filter-dropdown-item:hover .fc-svg { stroke: #fff; }
@media (max-width: 768px) {
  .filter-bar .filter-chip { height: 34px; padding: 0 0.7rem !important; }
  .filter-bar .filter-chip .fc-label { font-size: 0.74rem !important; }
  .fc-svg { width: 15px; height: 15px; }
}

    /* Dismissible Welcome / Onboarding Strip */
    .welcome-strip {
      position: relative;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      flex-wrap: wrap;
      background: linear-gradient(135deg, rgba(255, 51, 75, 0.12) 0%, rgba(17, 20, 30, 0.96) 55%, rgba(56, 189, 248, 0.08) 100%);
      border: 1px solid rgba(255, 51, 75, 0.32);
      border-radius: 14px;
      padding: 0.9rem 2.5rem 0.9rem 1.15rem;
      margin-bottom: 1.15rem;
      box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
    }
    .welcome-strip-copy {
      flex: 1 1 280px;
      min-width: 0;
    }
    .welcome-strip-copy strong {
      display: block;
      font-family: var(--font-display);
      font-size: 1rem;
      font-weight: 700;
      color: #fff;
      margin-bottom: 0.2rem;
    }
    .welcome-strip-copy p {
      margin: 0;
      font-size: 0.84rem;
      color: var(--text-muted);
      line-height: 1.45;
    }
    .welcome-strip-actions {
      display: flex;
      align-items: center;
      gap: 0.55rem;
      flex-wrap: wrap;
    }
    .welcome-strip-actions .btn {
      padding: 0.5rem 0.95rem;
      font-size: 0.82rem;
      border-radius: 999px;
      white-space: nowrap;
    }
    .welcome-strip-close {
      position: absolute;
      top: 0.5rem;
      right: 0.6rem;
      width: 28px;
      height: 28px;
      border: 0;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.06);
      color: var(--text-muted);
      font-size: 1.15rem;
      line-height: 1;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: background 0.15s ease, color 0.15s ease;
    }
    .welcome-strip-close:hover {
      background: rgba(255, 255, 255, 0.15);
      color: #fff;
    }
    @media (max-width: 640px) {
      .welcome-strip {
        padding: 0.85rem 2.2rem 0.9rem 0.95rem;
        gap: 0.75rem;
      }
      .welcome-strip-copy strong {
        font-size: 0.94rem;
      }
      .welcome-strip-actions {
        width: 100%;
      }
      .welcome-strip-actions .btn {
        flex: 1 1 auto;
        justify-content: center;
      }
    }

    /* AdaLeak Studio Pro: Ad-Free Mode & Comment Gold Badge */
    html.ad-free-mode .adsbygoogle,
    html.ad-free-mode ins.adsbygoogle,
    html.ad-free-mode .google-auto-placed,
    html.ad-free-mode .ad-promo-widget {
      display: none !important;
    }
    .pro-badge-sm {
      display: inline-flex;
      align-items: center;
      gap: 2px;
      font-size: 0.62rem;
      font-weight: 800;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      color: #ffffff;
      background: #ff334b;
      border: 1px solid #ff4d6d;
      border-radius: 5px;
      padding: 0.06rem 0.36rem;
      line-height: 1.2;
      vertical-align: middle;
      box-shadow: 0 0 8px rgba(255, 51, 75, 0.35);
    }

    /* Private video upload & visibility controls */
    .visibility-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0.6rem;
    }
    .vis-option {
      display: flex;
      align-items: flex-start;
      gap: 0.55rem;
      padding: 0.65rem 0.75rem;
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid var(--card-border);
      cursor: pointer;
      transition: border-color 0.15s ease, background 0.15s ease;
    }
    .vis-option:hover {
      border-color: rgba(255, 255, 255, 0.25);
    }
    .vis-option.is-selected {
      border-color: rgba(255, 51, 75, 0.65);
      background: rgba(255, 51, 75, 0.08);
    }
    .vis-option[data-vis-card="private"].is-selected {
      border-color: rgba(168, 85, 247, 0.65);
      background: rgba(168, 85, 247, 0.10);
    }
    .vis-option input[type="radio"] {
      margin-top: 3px;
      accent-color: var(--accent-red);
      flex-shrink: 0;
    }
    .vis-option[data-vis-card="private"] input[type="radio"] {
      accent-color: #a855f7;
    }
    .vis-option strong {
      display: block;
      font-size: 0.84rem;
      color: #fff;
      line-height: 1.25;
    }
    .vis-option small {
      display: block;
      font-size: 0.72rem;
      color: var(--text-muted);
      line-height: 1.35;
      margin-top: 2px;
    }
    .private-pill-tag {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      font-size: 0.66rem;
      font-weight: 800;
      letter-spacing: 0.03em;
      color: #d8b4fe;
      background: rgba(168, 85, 247, 0.16);
      border: 1px solid rgba(168, 85, 247, 0.42);
      border-radius: 5px;
      padding: 0.08rem 0.42rem;
      vertical-align: middle;
      margin-left: 0.4rem;
    }
    @media (max-width: 520px) {
      .visibility-grid {
        grid-template-columns: 1fr;
      }
    }

/* Private video bar — site style */
.moderation-bar.private-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap;
  margin-bottom: 0.7rem; padding: 0.65rem 0.75rem 0.65rem 0.85rem; border-radius: 12px;
  background: linear-gradient(90deg, rgba(255,51,75,0.10) 0%, rgba(255,255,255,0.03) 70%);
  border: 1px solid rgba(255,51,75,0.30); border-left: 3px solid var(--accent-red);
}
.private-bar .pb-text { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.private-bar .pb-text > span { display: flex; flex-direction: column; gap: 0.12rem; }
.private-bar b { font-family: var(--font-display); font-size: 0.86rem; font-weight: 700; color: #fff; }
.private-bar small { font-size: 0.74rem; color: var(--text-muted); line-height: 1.35; }
.private-bar .pb-ico { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: var(--accent-red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .18s; }
.private-bar .pb-text > .pb-ico { width: 30px; height: 30px; padding: 7px; border-radius: 9px; background: rgba(255,51,75,0.12); }
.private-bar .pb-btn {
  display: inline-flex; align-items: center; gap: 0.45rem; height: 34px; padding: 0 0.95rem; border-radius: 10px; cursor: pointer;
  border: 1px solid rgba(255,51,75,0.4); background: var(--accent-red); color: #fff;
  font-family: var(--font-display); font-size: 0.82rem; font-weight: 700; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(255,51,75,0.35);
  transition: background .18s, border-color .18s, color .18s, transform .18s, box-shadow .18s;
}
.private-bar .pb-btn .pb-ico {
  stroke: #fff;
}
.private-bar .pb-btn:hover {
  background: #ff1f3a; border-color: #ff1f3a; color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255,51,75,0.45);
}
.private-bar .pb-btn:hover .pb-ico { stroke: #fff; }
.private-bar .pb-btn[disabled] { opacity: .6; cursor: default; transform: none; box-shadow: none; }

/* ---------- User Profile Hover Card (Global Popover) ---------- */
.user-popover {
  position: fixed; z-index: 99999; width: 360px; max-width: calc(100vw - 24px);
  background: #0d0f17;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 51, 75, 0.25);
  opacity: 0; pointer-events: none; transform: translateY(6px);
  transition: opacity .18s cubic-bezier(0.2, 0.8, 0.2, 1), transform .18s cubic-bezier(0.2, 0.8, 0.2, 1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.user-popover.visible {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}
.up-banner {
  height: 82px; width: 100%; position: relative;
  background: linear-gradient(120deg, #3b0a14 0%, #ff334b 55%, #7c3aed 100%);
  background-size: cover; background-position: center;
}
.up-banner::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(13,15,23,0.88) 100%);
}
.up-body {
  padding: 0 1.25rem 1.25rem; position: relative; margin-top: -32px;
}
.up-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 0.6rem;
}
.up-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  border: 3.5px solid #0d0f17; overflow: hidden;
  background: linear-gradient(135deg, #ff334b 0%, #7c3aed 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display, sans-serif); font-size: 1.6rem; font-weight: 800; color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,51,75,0.3);
  flex-shrink: 0; position: relative; z-index: 2;
}
.up-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Creator & Pro Avatar Glow Rings */
@keyframes creatorGlowPulse {
  0% {
    box-shadow: 0 0 0 2px rgba(255, 51, 75, 0.4), 0 0 12px rgba(255, 51, 75, 0.5), 0 0 24px rgba(255, 51, 75, 0.2);
  }
  50% {
    box-shadow: 0 0 0 3px rgba(255, 51, 75, 0.7), 0 0 18px rgba(255, 51, 75, 0.8), 0 0 32px rgba(255, 51, 75, 0.35);
  }
  100% {
    box-shadow: 0 0 0 2px rgba(255, 51, 75, 0.4), 0 0 12px rgba(255, 51, 75, 0.5), 0 0 24px rgba(255, 51, 75, 0.2);
  }
}

.avatar-pro-glow {
  animation: creatorGlowPulse 2.8s ease-in-out infinite !important;
  border-color: #ff334b !important;
}

.comment-avatar.avatar-pro-glow {
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 51, 75, 0.6), 0 0 8px rgba(255, 51, 75, 0.45) !important;
}

.top-contributor-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.12rem 0.45rem;
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 999px;
  vertical-align: middle;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.16);
}

/* Digital Superstar Supreme Badge */
.digital-superstar-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(135deg, #ff334b 0%, #a855f7 50%, #38bdf8 100%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  vertical-align: middle;
  box-shadow: 0 0 14px rgba(255, 51, 75, 0.45), 0 0 24px rgba(168, 85, 247, 0.3);
  animation: superstarPulse 3s ease-in-out infinite;
}

@keyframes superstarPulse {
  0% { box-shadow: 0 0 10px rgba(255, 51, 75, 0.4), 0 0 18px rgba(168, 85, 247, 0.25); }
  50% { box-shadow: 0 0 16px rgba(255, 51, 75, 0.7), 0 0 28px rgba(168, 85, 247, 0.5); transform: translateY(-0.5px); }
  100% { box-shadow: 0 0 10px rgba(255, 51, 75, 0.4), 0 0 18px rgba(168, 85, 247, 0.25); }
}

.badge.superstar-card {
  background: linear-gradient(135deg, rgba(255, 51, 75, 0.14), rgba(168, 85, 247, 0.12)) !important;
  border-color: rgba(255, 51, 75, 0.5) !important;
  box-shadow: 0 4px 18px rgba(255, 51, 75, 0.2);
}



.up-actions {
  display: flex; align-items: center; gap: 0.45rem; flex-shrink: 0;
  /* sit higher, over the banner, so there is room for a line under them */
  align-self: flex-start; margin-top: -24px; position: relative; z-index: 2;
}
.up-view-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem; height: 30px; padding: 0 0.75rem;
  border-radius: 9999px; font-size: 0.75rem; font-weight: 700; font-family: var(--font-display, sans-serif);
  background: rgba(255,51,75,0.08); color: #ffffff; border: 1px solid var(--accent-red);
  box-shadow: 0 0 10px rgba(255,51,75,0.2);
  transition: all .18s ease; text-decoration: none; white-space: nowrap;
}
.up-view-btn:hover {
  background: var(--accent-red); border-color: var(--accent-red); color: #fff; transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255,51,75,0.4);
}
.up-follow-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem; height: 30px; padding: 0 0.8rem;
  border-radius: 9999px; font-size: 0.75rem; font-weight: 700; font-family: var(--font-display, sans-serif);
  background: var(--accent-red); color: #fff; border: 1px solid rgba(255,51,75,0.4);
  box-shadow: 0 4px 14px rgba(255,51,75,0.35); cursor: pointer; transition: all .18s ease; white-space: nowrap;
}
.up-follow-btn:hover {
  background: #ff1f3a; border-color: #ff1f3a; transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255,51,75,0.5);
}
.up-follow-btn.is-following {
  background: rgba(255,51,75,0.08); color: var(--accent-red); border: 1px solid var(--accent-red); box-shadow: 0 0 10px rgba(255,51,75,0.2);
}
.up-follow-btn.is-following:hover {
  background: rgba(255,51,75,0.18); color: #ff5e73; border-color: #ff5e73; transform: translateY(-1px);
}
.up-follow-btn .up-follow-ico {
  width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}

.up-name-row {
  display: flex; align-items: center; gap: 0.45rem; margin-top: 0.65rem; flex-wrap: wrap;
}
.up-superstar-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #ff334b 0%, #a855f7 50%, #38bdf8 100%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(255, 51, 75, 0.45), 0 0 22px rgba(168, 85, 247, 0.35);
  animation: superstarPulse 3s ease-in-out infinite;
  white-space: nowrap;
  flex-shrink: 0;
}
.up-handle {
  font-family: var(--font-display, sans-serif); font-size: 1.12rem; font-weight: 800; color: #fff; letter-spacing: -0.015em;
}
.up-bio {
  margin-top: 0.45rem; font-size: 0.82rem; color: #cbd5e1; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.up-meta {
  display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 0.55rem;
  font-size: 0.75rem; color: var(--text-muted);
}
.up-meta-item {
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.up-meta-item svg {
  width: 13px; height: 13px; stroke: var(--text-muted); stroke-width: 2; fill: none;
}
.up-stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem;
  margin-top: 0.85rem; padding-top: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.up-stat {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 0.5rem 0.3rem;
  text-align: center;
  transition: border-color .18s;
}
.up-stat:hover {
  border-color: rgba(255, 51, 75, 0.3);
}
.up-stat b {
  display: block; font-family: var(--font-display, sans-serif); font-size: 1.05rem; font-weight: 800; color: var(--accent-red); line-height: 1.2;
}
.comment-vcheck {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; flex-shrink: 0;
  vertical-align: -1px;
}
.comment-vcheck, .comment-vcheck.shape-star {
  background: linear-gradient(135deg, #ff334b 0%, #ff1f3a 100%);
  clip-path: polygon(50% 0%, 65% 15%, 85% 15%, 85% 35%, 100% 50%, 85% 65%, 85% 85%, 65% 85%, 50% 100%, 35% 85%, 15% 85%, 15% 65%, 0% 50%, 15% 35%, 15% 15%, 35% 15%);
  filter: drop-shadow(0 1px 4px rgba(255,51,75,0.5));
}
.comment-vcheck svg, .comment-vcheck.shape-star svg {
  width: 8px; height: 8px; fill: none; stroke: #fff; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round;
}
.comment-vcheck.shape-circle {
  clip-path: none; border-radius: 50%;
  background: linear-gradient(135deg, #ff334b 0%, #ff1f3a 100%);
  box-shadow: 0 1px 5px rgba(255,51,75,0.45);
  border: 1px solid rgba(255,255,255,0.2);
}
.comment-vcheck.shape-circle svg {
  width: 8px; height: 8px; fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round;
}
.comment-vcheck.shape-check {
  clip-path: none; background: none; box-shadow: none; border: none;
  filter: drop-shadow(0 1px 3px rgba(255,51,75,0.6));
}
.comment-vcheck.shape-check svg {
  width: 12px; height: 12px; fill: none; stroke: #ff334b; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round;
}

.up-stat span {
  display: block; font-size: 0.62rem; color: var(--text-muted); text-transform: uppercase; font-weight: 700; letter-spacing: 0.04em; margin-top: 2px;
}
.up-badge, .up-ver-pill, .up-pro-pill {
  display: inline-flex; align-items: center; gap: 0.2rem; border-radius: 6px; padding: 0.12rem 0.48rem;
  font-size: 0.64rem; font-weight: 800; letter-spacing: 0.04em; line-height: 1.3;
}
.up-badge { background: rgba(255,51,75,0.14); color: #ff334b; border: 1px solid rgba(255,51,75,0.35); text-transform: uppercase; }
.up-ver-pill { background: rgba(255,51,75,0.12); color: #ff334b; border: 1px solid rgba(255,51,75,0.35); }
.up-pro-pill { background: rgba(255,51,75,0.12); color: #ff334b; border: 1px solid rgba(255,51,75,0.35); }
.up-vcheck {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; flex-shrink: 0;
}
.up-vcheck, .up-vcheck.shape-star {
  background: linear-gradient(135deg, #ff334b 0%, #ff1f3a 100%);
  clip-path: polygon(50% 0%, 65% 15%, 85% 15%, 85% 35%, 100% 50%, 85% 65%, 85% 85%, 65% 85%, 50% 100%, 35% 85%, 15% 85%, 15% 65%, 0% 50%, 15% 35%, 15% 15%, 35% 15%);
  filter: drop-shadow(0 2px 6px rgba(255,51,75,0.5));
}
.up-vcheck svg, .up-vcheck.shape-star svg { width: 10px; height: 10px; fill: none; stroke: #fff; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; transform: translateX(-0.5px); }
.up-vcheck.shape-circle {
  clip-path: none; border-radius: 50%;
  background: linear-gradient(135deg, #ff334b 0%, #ff1f3a 100%);
  box-shadow: 0 2px 8px rgba(255,51,75,0.45);
  border: 1px solid rgba(255,255,255,0.2);
}
.up-vcheck.shape-circle svg { width: 10px; height: 10px; fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.up-vcheck.shape-check {
  clip-path: none; background: none; box-shadow: none; border: none;
  filter: drop-shadow(0 2px 5px rgba(255,51,75,0.6));
}
.up-vcheck.shape-check svg { width: 15px; height: 15px; fill: none; stroke: #ff334b; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; }

/* Upload Modal specific layout optimization */
#uploadModal .modal-box {
  max-width: 540px;
  max-height: 94vh;
  padding: 1.25rem 1.45rem;
}
#uploadModal .modal-title {
  font-size: 1.22rem;
  margin-bottom: 0.25rem;
}
#uploadModal #uploaderStatusBadge {
  margin-bottom: 0.75rem !important;
  padding: 0.45rem 0.75rem !important;
  font-size: 0.78rem !important;
}
#uploadModal .form-group {
  margin-bottom: 0.75rem;
}
#uploadModal .form-label {
  font-size: 0.78rem;
  margin-bottom: 0.25rem;
}
#uploadModal .file-dropzone {
  padding: 0.85rem 0.75rem !important;
}
#uploadModal .file-dropzone-icon {
  font-size: 1.5rem !important;
  margin-bottom: 0.2rem !important;
}
#uploadModal #fileNameDisplay {
  font-size: 0.86rem !important;
  margin-top: 0.15rem !important;
}
#uploadModal #uploadDropHint {
  font-size: 0.72rem !important;
  margin-top: 0.25rem !important;
}
#uploadModal .form-input,
#uploadModal .form-select,
#uploadModal .form-textarea {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
}
#uploadModal .form-textarea {
  rows: 2;
  min-height: 52px;
}
#uploadModal .vis-option {
  padding: 0.55rem 0.75rem;
}
#uploadModal .vis-option strong {
  font-size: 0.84rem;
}
#uploadModal .vis-option small {
  font-size: 0.7rem;
  line-height: 1.25;
}
#uploadModal .btn-upload {
  padding: 0.65rem !important;
  font-size: 0.88rem !important;
}

.loc-autocomplete-wrap {
  position: relative;
  flex: 1;
  display: flex;
}
.loc-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  background: #11141e;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 51, 75, 0.2);
  z-index: 10050;
  display: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 51, 75, 0.4) transparent;
}
.loc-dropdown-menu.show {
  display: block;
}
.loc-dropdown-menu::-webkit-scrollbar {
  width: 6px;
}
.loc-dropdown-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 51, 75, 0.4);
  border-radius: 6px;
}
.loc-dropdown-item {
  padding: 0.55rem 0.9rem;
  font-size: 0.84rem;
  color: #e2e8f0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.15s ease, color 0.15s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.loc-dropdown-item:last-child {
  border-bottom: none;
}
.loc-dropdown-item:hover,
.loc-dropdown-item.active {
  background: rgba(255, 51, 75, 0.14);
  color: #fff;
}
.loc-dropdown-item .loc-icon {
  font-size: 0.85rem;
  opacity: 0.7;
}
.loc-dropdown-item.is-header {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  cursor: default;
  padding: 0.4rem 0.9rem;
}



/* #37: mobile fixes */
html, body { overflow-x: hidden; }
@media (max-width: 768px) {
  /* iOS Safari zooms into fields with text smaller than 16px */
  input, select, textarea, .sort-select { font-size: 16px !important; }
  /* Comfortable touch targets */
  .filter-chip, .sort-select, .feed-tools button, .video-actions button, .comment-actions button { min-height: 40px; }
}

/* #24 footage verification badges */
.vbadges { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.35rem 0 0.45rem; }
.vbadge { font-size: 0.7rem; font-weight: 600; padding: 0.15rem 0.5rem; border-radius: 999px; text-decoration: none; border: 1px solid; white-space: nowrap; }
.vb-ok  { color: #4ade80; border-color: rgba(74,222,128,0.35); background: rgba(74,222,128,0.1); }
.vb-loc { color: #38bdf8; border-color: rgba(56,189,248,0.35); background: rgba(56,189,248,0.1); }
.vb-old { color: #fbbf24; border-color: rgba(251,191,36,0.35); background: rgba(251,191,36,0.1); }
.vb-unv { color: var(--text-muted, #9ca3af); border-color: rgba(156,163,175,0.3); background: rgba(156,163,175,0.08); }

/* Account menu: verified badge slightly larger, centred on the text, close to the name */
.comment-vcheck.acct-vcheck { width: 16px; height: 16px; margin-left: 3px; vertical-align: middle; position: relative; top: -1px; }
.comment-vcheck.acct-vcheck svg { width: 9px; height: 9px; }
.comment-vcheck.acct-vcheck.shape-check svg { width: 14px; height: 14px; }

/* Owner "Mark as verified" dialog */
.vdlg-backdrop { position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 1rem; animation: vdlgFade .15s ease-out; }
.vdlg { width: 100%; max-width: 460px; background: #12141c; border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 1.4rem 1.4rem 1.2rem; box-shadow: 0 20px 60px rgba(0,0,0,0.6); color: #e2e8f0; }
.vdlg-head { display: flex; gap: 0.8rem; align-items: center; margin-bottom: 1.1rem; }
.vdlg-ico { width: 42px; height: 42px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: rgba(74,222,128,0.12); border: 1px solid rgba(74,222,128,0.3); font-size: 1.2rem; }
.vdlg-head h3 { margin: 0; font-size: 1.1rem; color: #fff; font-family: var(--font-display, inherit); }
.vdlg-head p { margin: 0.15rem 0 0; font-size: 0.82rem; color: #94a3b8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 340px; }
.vdlg-label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.4rem; }
.vdlg-label span { font-weight: 400; color: #94a3b8; }
.vdlg-input { width: 100%; padding: 0.65rem 0.8rem; border-radius: 10px; border: 1px solid rgba(255,255,255,0.14); background: rgba(0,0,0,0.3); color: #fff; font-size: 0.9rem; outline: none; }
.vdlg-input:focus { border-color: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,0.15); }
.vdlg-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.6rem 0 0.9rem; }
.vdlg-chip { font-size: 0.74rem; padding: 0.3rem 0.65rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.04); color: #cbd5e1; cursor: pointer; }
.vdlg-chip:hover { border-color: rgba(74,222,128,0.5); color: #4ade80; }
.vdlg-check { display: flex; gap: 0.5rem; align-items: center; font-size: 0.82rem; color: #cbd5e1; cursor: pointer; margin-bottom: 1.2rem; }
.vdlg-actions { display: flex; justify-content: flex-end; gap: 0.6rem; }
.vdlg-btn { padding: 0.6rem 1.1rem; border-radius: 10px; font-weight: 600; font-size: 0.88rem; cursor: pointer; border: 1px solid rgba(255,255,255,0.14); background: transparent; color: #cbd5e1; }
.vdlg-ok { background: #16a34a; border-color: #16a34a; color: #fff; }
.vdlg-ok:hover { background: #15803d; }
@keyframes vdlgFade { from { opacity: 0; } to { opacity: 1; } }

/* Verified badge: same size and placement next to every username */
.comment-vcheck { width: 16px; height: 16px; margin-left: 4px; vertical-align: middle; position: relative; top: -1px; }
.comment-vcheck svg, .comment-vcheck.shape-star svg, .comment-vcheck.shape-circle svg { width: 9px; height: 9px; transform: translateX(-0.5px); }
.comment-vcheck.shape-check svg { width: 14px; height: 14px; }
.comment-vcheck, .comment-vcheck.shape-star { filter: drop-shadow(0 0 5px rgba(255,51,75,0.6)); }

/* Like / dislike / comment counts in the site's pink accent */
.like-count, .dislike-count { color: #ff4d8d; font-weight: 700; }
.comment-count { color: #ffffff !important; font-weight: 700; }

/* Clean video cards: no control bar until hover; a play button in the middle instead */
#videoGrid .video-container video { cursor: pointer; }
#videoGrid .video-container:not(.has-controls):not(.is-playing)::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%);
  border-radius: 50%; background: rgba(0,0,0,0.45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/30px no-repeat;
  border: 2px solid rgba(255,255,255,0.75); pointer-events: none; transition: transform .15s ease, background-color .15s ease, opacity .2s ease;
  backdrop-filter: blur(2px);
}
#videoGrid .video-container:hover::after { transform: translate(-50%, -50%) scale(1.08); }
#videoGrid .video-container:has(.sensitive-overlay:not(.revealed))::after { display: none; }
#videoGrid .video-container.is-playing::after { display: none !important; opacity: 0 !important; }

/* Badge sits inside the name element, right after the text */
.author-name .comment-vcheck, .nav-name .comment-vcheck { margin-left: 3px; }
.nav-name { display: inline-flex; align-items: center; }

/* Like / dislike / comments: normal buttons, text in the "Upload Footage" red */
.video-card .like-btn, .video-card .dislike-btn { color: #ff334b; }
.video-card .like-count, .video-card .dislike-count { color: #ff334b; }


/* AdaLeak Radio */
.radio-fab { position: fixed; left: 18px; bottom: 18px; z-index: 9000; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,51,75,0.5); background: #14161f; font-size: 1.5rem; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,0.5); transition: transform .15s ease; }
.radio-fab:hover { transform: scale(1.07); }
.radio-fab.playing { background: #ff334b; animation: radioPulse 1.6s ease-in-out infinite; }
@keyframes radioPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,51,75,0.55); } 50% { box-shadow: 0 0 0 10px rgba(255,51,75,0); } }
.radio-panel { position: fixed; left: 18px; bottom: 82px; z-index: 9001; width: 320px; max-width: calc(100vw - 36px); max-height: min(560px, calc(100vh - 110px)); display: none; flex-direction: column; background: #12141c; border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.6); color: #e2e8f0; padding: 0.9rem; }
.radio-panel.open { display: flex; }
.rp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.6rem; }
.rp-live { color: #ff334b; font-weight: 800; font-size: 0.75rem; letter-spacing: 0.08em; }
.rp-close { background: none; border: 0; color: #94a3b8; font-size: 1.4rem; cursor: pointer; line-height: 1; }
.rp-now { display: flex; gap: 0.7rem; align-items: center; }
.rp-play { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; border: 0; background: #ff334b; color: #fff; font-size: 1rem; cursor: pointer; }
.rp-play:hover { background: #e11d3a; }
.rp-name { font-weight: 700; color: #fff; }
.rp-genre { font-size: 0.78rem; color: #94a3b8; }
.rp-status { font-size: 0.75rem; color: #4ade80; min-height: 1.1em; margin: 0.4rem 0 0.2rem; }
.rp-status.err { color: #fbbf24; }
.rp-vol { width: 100%; accent-color: #ff334b; margin-bottom: 0.6rem; }
.rp-list { overflow-y: auto; display: flex; flex-direction: column; gap: 0.3rem; padding-right: 2px; }
.rp-item { display: flex; gap: 0.6rem; align-items: center; text-align: left; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; padding: 0.45rem 0.6rem; color: #e2e8f0; cursor: pointer; }
.rp-item:hover { border-color: rgba(255,51,75,0.5); }
.rp-item.on { border-color: #ff334b; background: rgba(255,51,75,0.12); }
.rp-item b { display: block; font-size: 0.85rem; }
.rp-item small { color: #94a3b8; font-size: 0.72rem; }
.rp-flag { font-size: 1.2rem; }
.rp-foot { font-size: 0.68rem; color: #64748b; margin-top: 0.5rem; text-align: center; }

/* Video cards: clean, crisp video frame without transparent fade */
#videoGrid .video-container { background: #000; }
#videoGrid .video-container:not(.has-controls) video {
  -webkit-mask-image: none;
          mask-image: none;
}

/* Account menu: badge right after the name (the switch row uses a 0.4rem flex gap) */
.account-menu-head .comment-vcheck.acct-vcheck { margin-left: 3px; }
.account-switch-btn span .comment-vcheck.acct-vcheck { margin-left: calc(3px - 0.4rem); }

/* Phones and small tablets: tidy action row under the video (one line, icons + counts) */
@media (max-width: 640px) {
  .video-card .video-footer { flex-direction: column; align-items: stretch; gap: 0.6rem; }
  .video-card .action-buttons {
    display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 0.3rem;
    width: 100%; overflow-x: auto; scrollbar-width: none;
  }
  .video-card .action-buttons::-webkit-scrollbar { display: none; }
  .video-card .action-buttons .action-btn {
    flex: 1 1 0; min-width: 0; justify-content: center; padding: 0.45rem 0.3rem; margin: 0 !important; white-space: nowrap;
  }
  .video-card .action-buttons .btn-label { display: none; }
}

/* Like (green) and dislike (red) are easy to tell apart */
.video-card .like-btn, .video-card .like-btn .like-count { color: #22c55e; }
.video-card .like-btn.active-like { background: rgba(34,197,94,0.15); border-color: rgba(34,197,94,0.5); }
.video-card .dislike-btn, .video-card .dislike-btn .dislike-count { color: #ff334b; }
.video-card .dislike-btn.active-dislike { background: rgba(255,51,75,0.15); border-color: rgba(255,51,75,0.5); }

/* Radio button: clearly visible red pill with a label */
.radio-fab { width: auto; height: 46px; padding: 0 1.1rem 0 0.9rem; border-radius: 999px; display: inline-flex; align-items: center; gap: 0.45rem;
  background: linear-gradient(135deg, #ff334b, #e11d48); border: 0; color: #fff; font-weight: 800; font-size: 0.95rem; box-shadow: 0 8px 24px rgba(255,51,75,0.45); }
.radio-fab .rf-ico { font-size: 1.25rem; line-height: 1; }
.radio-fab.playing .rf-txt::after { content: ' • ON AIR'; font-size: 0.7rem; letter-spacing: 0.05em; }
.radio-panel { bottom: 76px; }

/* Radio panel opened from the header button */
.radio-panel.from-header { left: auto; right: 18px; top: 84px; bottom: auto; }
.nav-radio-btn.playing { color: #fff; background: #ff334b; border-color: #ff334b; }
@media (max-width: 640px) { .radio-panel.from-header { right: 10px; left: 10px; width: auto; top: 70px; } }

/* Settings → Subscription */
.billing-panel { display: flex; flex-direction: column; gap: 0.8rem; }
.bp-card { border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 1rem; background: rgba(255,255,255,0.03); }
.bp-card.bp-on { border-color: rgba(255,51,75,0.45); background: linear-gradient(145deg, rgba(255,51,75,0.10), rgba(255,255,255,0.02)); }
.bp-plan { font-weight: 800; color: #fff; font-size: 1.05rem; display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.3rem; }
.bp-pill { font-size: 0.68rem; font-weight: 800; padding: 0.1rem 0.5rem; border-radius: 999px; background: rgba(74,222,128,0.15); color: #4ade80; border: 1px solid rgba(74,222,128,0.4); text-transform: uppercase; }
.bp-pill.warn { background: rgba(251,191,36,0.15); color: #fbbf24; border-color: rgba(251,191,36,0.4); }
.bp-muted { color: var(--text-muted); font-size: 0.85rem; }
.bp-muted.small { font-size: 0.74rem; }
.bp-warn { margin-top: 0.5rem; color: #fbbf24; font-size: 0.82rem; }
.bp-actions { display: flex; flex-direction: column; gap: 0.5rem; }
.bp-btn { display: block; text-align: center; text-decoration: none; padding: 0.7rem; border-radius: 10px; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.04); color: #e2e8f0; font-weight: 700; font-size: 0.88rem; cursor: pointer; }
.bp-btn:hover { border-color: rgba(255,51,75,0.5); }
.bp-primary { background: #ff334b; border-color: #ff334b; color: #fff; }
.bp-danger { color: #f87171; border-color: rgba(248,113,113,0.35); background: transparent; }
.bp-links { font-size: 0.8rem; color: var(--text-muted); text-align: center; }
.bp-links a { color: #ff6b7f; text-decoration: none; }
.rp-head { user-select: none; }
.rp-grip { margin-left: auto; margin-right: 0.6rem; color: #64748b; font-size: 0.7rem; }

/* Account settings tabs: wrap into rows instead of a horizontal scrollbar */
div:has(> #tabBtnMyUploads) { flex-wrap: wrap !important; overflow: visible !important; }
div:has(> #tabBtnMyUploads) > button { flex: 1 1 calc(25% - 0.35rem) !important; min-width: 0 !important; }
@media (max-width: 480px) { div:has(> #tabBtnMyUploads) > button { flex-basis: calc(33% - 0.35rem) !important; } }
.rp-search { width: 100%; margin-bottom: 0.5rem; padding: 0.5rem 0.7rem; border-radius: 10px; border: 1px solid rgba(255,255,255,0.12); background: rgba(0,0,0,0.3); color: #fff; font-size: 0.82rem; outline: none; }
.rp-search:focus { border-color: #ff334b; }

/* Remembered "already watched" videos (hidden to prevent cluttering video watermark) */
.video-card.is-watched .video-container::before {
  display: none !important;
}

/* Feed toolbar on phones and tablets: view buttons on one row, filters below, nothing cut off */
.feed-tools { flex-wrap: wrap; }
@media (max-width: 760px) {
  .feed-tools { width: 100%; }
  .feed-tools .view-toggle-btns { width: 100%; }
  .feed-tools .view-toggle-btns .btn { flex: 1 1 0; display: inline-flex; flex-direction: row; justify-content: center; align-items: center; gap: 0.3rem; white-space: nowrap; }
  .feed-tools .sort-select { flex: 1 1 calc(50% - 0.3rem); min-width: 0; width: auto; }
}
.nav-radio-btn.playing .nav-ico, .nav-radio-btn:hover .nav-ico { stroke: #fff !important; }
.nav-radio-btn .nav-ico { stroke: #ff334b; }
.act-ico { width: 15px; height: 15px; fill: none; stroke: #ff334b; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.comment-toggle-btn:hover .act-ico { stroke: #fff; }

/* Uniform compact styling for all video action buttons */
.video-card .action-buttons {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.video-card .action-btn {
  height: 32px;
  min-width: 32px;
  box-sizing: border-box;
  padding: 0 0.5rem !important;
  font-size: 0.78rem !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  border-radius: 7px;
  line-height: 1;
  white-space: nowrap;
}
.video-card .like-btn,
.video-card .dislike-btn {
  padding: 0 0.45rem !important;
  font-size: 0.76rem !important;
}
.video-card .like-btn .like-count,
.video-card .dislike-btn .dislike-count {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 0.76rem;
  margin-left: 1px;
}
.video-card .action-btn.report-btn,
.video-card .action-btn.owner-verify-btn {
  min-width: 32px;
  padding: 0 0.4rem !important;
}
.video-card .owner-verify-btn {
  padding: 0 0.5rem !important;
  font-size: 0.72rem !important;
  font-weight: 700;
  border-radius: 6px;
  background: rgba(34, 197, 94, 0.08) !important;
  border-color: rgba(34, 197, 94, 0.3) !important;
  color: #4ade80 !important;
  letter-spacing: 0.02em;
  transition: all 0.18s ease;
}
.video-card .owner-verify-btn:hover {
  background: rgba(34, 197, 94, 0.18) !important;
  border-color: #22c55e !important;
  color: #fff !important;
}
.video-card .share-btn {
  padding: 0 0.55rem !important;
  font-size: 0.74rem !important;
}

/* Separation between Voting and Comments */

.video-card .dislike-btn {
  margin-right: 0.1rem;
}


/* Custom Language Switcher Dropdown */
.lang-switcher-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.lang-switcher-wrap .lang-ico {
  position: absolute;
  left: 10px;
  width: 15px;
  height: 15px;
  stroke: #ff334b;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  transition: stroke 0.18s ease;
}
.lang-switcher-wrap .lang-arrow {
  position: absolute;
  right: 10px;
  width: 12px;
  height: 12px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  transition: stroke 0.18s ease;
}
.lang-select-custom {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main, #f1f5f9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.38rem 1.75rem 0.38rem 2.05rem;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.lang-select-custom:hover {
  background: rgba(255, 51, 75, 0.08);
  border-color: rgba(255, 51, 75, 0.4);
}
.lang-select-custom:hover + .lang-arrow,
.lang-switcher-wrap:hover .lang-ico {
  stroke: #fff;
}
.lang-select-custom:focus-visible {
  border-color: #ff334b;
  box-shadow: 0 0 0 2px rgba(255, 51, 75, 0.25);
}
.lang-select-custom option {
  background: #0f1116;
  color: #f1f5f9;
  font-size: 0.85rem;
}

/* 4. KORAK: Spotlight Boost Badges & Cards */
.video-card.is-spotlight {
  border-color: rgba(251, 191, 36, 0.6) !important;
  box-shadow: 0 4px 28px rgba(251, 191, 36, 0.16) !important;
  position: relative;
}
.video-card.is-spotlight::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #f59e0b, #fbbf24, #ef4444);
  z-index: 4;
}
.spotlight-pill {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #000;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-radius: 6px;
  padding: 0.2rem 0.55rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.video-card .boost-btn {
  color: #fbbf24 !important;
  border-color: rgba(251, 191, 36, 0.4) !important;
  background: rgba(251, 191, 36, 0.08) !important;
}
.video-card .boost-btn:hover {
  background: rgba(251, 191, 36, 0.22) !important;
  border-color: #fbbf24 !important;
  color: #fff !important;
}
.boost-token-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}




/* Modern High-End Video Upload Dropzone */
#uploadModal .file-dropzone {
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(255, 51, 75, 0.08) 0%, rgba(13, 16, 25, 0.8) 75%);
  border: 1.5px dashed rgba(255, 255, 255, 0.2) !important;
  border-radius: 14px !important;
  padding: 1.4rem 1rem !important;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
#uploadModal .file-dropzone:hover {
  border-color: var(--accent-red) !important;
  background: radial-gradient(circle at 50% 0%, rgba(255, 51, 75, 0.16) 0%, rgba(18, 22, 34, 0.9) 75%);
  box-shadow: 0 0 24px rgba(255, 51, 75, 0.18), inset 0 0 16px rgba(255, 51, 75, 0.06);
  transform: translateY(-1px);
}
#uploadModal .drop-icon-circle {
  width: 46px;
  height: 46px;
  margin: 0 auto 0.6rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 51, 75, 0.2) 0%, rgba(168, 85, 247, 0.15) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.25s ease;
}
#uploadModal .file-dropzone:hover .drop-icon-circle {
  background: linear-gradient(135deg, rgba(255, 51, 75, 0.35) 0%, rgba(168, 85, 247, 0.3) 100%);
  border-color: rgba(255, 51, 75, 0.5);
  transform: scale(1.08);
  box-shadow: 0 0 16px rgba(255, 51, 75, 0.4);
}
#uploadModal .drop-svg {
  width: 22px;
  height: 22px;
  stroke: #ff5e73;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#uploadModal .drop-main-text {
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  color: #f1f5f9 !important;
  margin-top: 0.2rem !important;
  letter-spacing: -0.01em;
}
#uploadModal .drop-browse-link {
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 800;
  transition: color 0.15s ease;
}
#uploadModal .file-dropzone:hover .drop-browse-link {
  color: #7dd3fc;
}
#uploadModal .drop-sub-text {
  font-size: 0.73rem !important;
  color: #94a3b8 !important;
  margin-top: 0.35rem !important;
  font-weight: 500;
}


.up-superstar-row {
  margin-top: 0.6rem;
  margin-bottom: -0.25rem;
  display: flex;
  align-items: center;
}
.up-superstar-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #ff334b 0%, #a855f7 50%, #38bdf8 100%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(255, 51, 75, 0.45), 0 0 22px rgba(168, 85, 247, 0.35);
  animation: superstarPulse 3s ease-in-out infinite;
  white-space: nowrap;
}

/* CLS Optimization (#17) */
img {
  content-visibility: auto;
}
.brand-logo-img {
  aspect-ratio: 132 / 64;
}
.up-avatar img, .avatar img, .comment-avatar img {
  aspect-ratio: 1 / 1;
}
.video-card video, .video-container video, .queue-video video {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}


/* ==========================================================================
   Ada AI Assistant Floating Widget ("Ask Ada")
   ========================================================================== */
.ada-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px 7px 9px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #11141f 0%, #1a1e2d 100%);
  border: 1px solid rgba(255, 51, 75, 0.45);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), 0 0 12px rgba(255, 51, 75, 0.25);
  cursor: pointer;
  color: #fff;
  font-family: var(--font-display, inherit);
  font-size: 0.80rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s, border-color 0.2s;
  user-select: none;
}
.ada-fab:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: var(--accent-red, #ff334b);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 24px rgba(255, 51, 75, 0.45);
}
.ada-fab-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff334b 0%, #a855f7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 0 10px rgba(255, 51, 75, 0.6);
}
.ada-fab-text {
  display: flex;
  align-items: center;
  gap: 5px;
}
.ada-fab-badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 51, 75, 0.15);
  color: var(--accent-red, #ff334b);
  border: 1px solid rgba(255, 51, 75, 0.35);
  font-weight: 800;
}

/* Ada Chat Modal / Drawer */
.ada-modal {
  position: fixed;
  bottom: 84px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 120px);
  z-index: 9991;
  background: #0d0f17;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 30px rgba(255, 51, 75, 0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(16px);
  animation: adaSlideUp 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}
.ada-modal.is-open {
  display: flex;
}
@keyframes adaSlideUp {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.ada-header {
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(255, 51, 75, 0.12) 0%, rgba(13, 15, 23, 0.95) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ada-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ada-header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff334b 0%, #a855f7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 0 12px rgba(255, 51, 75, 0.5);
}
.ada-header-info h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ada-header-info p {
  margin: 2px 0 0 0;
  font-size: 0.72rem;
  color: var(--text-muted, #94a3b8);
}
.ada-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted, #94a3b8);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1;
}
.ada-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.ada-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ada-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.45;
  word-break: break-word;
}
.ada-msg.ada-msg-ai {
  align-self: flex-start;
  background: #161924;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border-top-left-radius: 4px;
}
.ada-msg.ada-msg-user {
  align-self: flex-end;
  background: linear-gradient(135deg, #ff334b 0%, #e11d48 100%);
  color: #fff;
  border-top-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(255, 51, 75, 0.3);
}

.ada-typing {
  align-self: flex-start;
  background: #161924;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 14px;
  border-radius: 14px;
  color: #94a3b8;
  font-size: 0.78rem;
  display: none;
  align-items: center;
  gap: 6px;
}
.ada-typing.is-visible {
  display: inline-flex;
}

.ada-suggestions {
  padding: 6px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.15);
}
.ada-pill {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.15s;
}
.ada-pill:hover {
  background: rgba(255, 51, 75, 0.15);
  border-color: rgba(255, 51, 75, 0.4);
  color: #fff;
}

.ada-input-area {
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 8px;
  background: #090a10;
}
.ada-input {
  flex: 1;
  background: #141722;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 9px 12px;
  color: #fff;
  font-size: 0.86rem;
  outline: none;
  transition: border-color 0.18s;
}
.ada-input:focus {
  border-color: var(--accent-red, #ff334b);
}
.ada-send-btn {
  background: var(--accent-red, #ff334b);
  border: none;
  border-radius: 10px;
  color: #fff;
  padding: 0 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.18s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ada-send-btn:hover {
  opacity: 0.92;
  transform: scale(1.03);
}
.ada-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Mobile Responsive rules for Ada Widget */
@media (max-width: 640px) {
  .ada-fab {
    bottom: 16px;
    right: 16px;
    padding: 6px 10px 6px 7px;
    gap: 5px;
    font-size: 0.74rem;
  }
  .ada-fab-avatar {
    width: 22px;
    height: 22px;
    font-size: 12px;
  }
  .ada-fab-badge {
    font-size: 0.58rem;
    padding: 1px 4px;
  }
  .ada-modal {
    right: 12px;
    bottom: 68px;
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    height: 460px;
    max-height: calc(100vh - 90px);
    border-radius: 16px;
  }
  .ada-header {
    padding: 10px 14px;
  }
  .ada-header-avatar {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }
  .ada-header-info h4 {
    font-size: 0.88rem;
  }
  .ada-messages {
    padding: 12px;
    gap: 10px;
  }
  .ada-msg {
    font-size: 0.80rem;
    padding: 8px 12px;
  }
}

/* Video Card Actions & More Dropdown Menu */
.card-more-menu-wrap {
  position: relative;
  display: inline-flex;
}
.card-more-btn {
  letter-spacing: 0.1em;
  font-weight: 800;
  font-size: 0.9rem !important;
  padding: 0 0.55rem !important;
}
.card-more-dropdown {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  min-width: 170px;
  background: #12151f;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  padding: 5px;
  display: none;
  flex-direction: column;
  gap: 3px;
  z-index: 100;
  backdrop-filter: blur(12px);
}
.card-more-dropdown.is-active {
  display: flex;
}
.card-more-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 10px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.card-more-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.card-more-item.danger {
  color: #ff334b;
}
.card-more-item.danger:hover {
  background: rgba(255, 51, 75, 0.15);
  color: #ff4d63;
}

#uploadModal .file-dropzone.dragover {
  border-color: #ff334b !important;
  background: radial-gradient(circle at 50% 0%, rgba(255, 51, 75, 0.28) 0%, rgba(25, 30, 48, 0.95) 75%) !important;
  box-shadow: 0 0 30px rgba(255, 51, 75, 0.4), inset 0 0 20px rgba(255, 51, 75, 0.15) !important;
  transform: scale(1.02);
}
#uploadModal .file-dropzone.dragover .drop-icon-circle {
  transform: scale(1.15);
  background: linear-gradient(135deg, rgba(255, 51, 75, 0.5) 0%, rgba(168, 85, 247, 0.45) 100%) !important;
  box-shadow: 0 0 22px rgba(255, 51, 75, 0.6) !important;
}


/* Override all comment buttons and counters to pure white */



/* Hide Ask Ada floating button whenever any modal overlay is active or when body has modal open */
body.has-active-modal .ada-fab,
body:has(.modal-overlay.active) .ada-fab,
body:has(#authModal.active) .ada-fab,
body:has(#authModal[style*="display: flex"]) .ada-fab {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ==========================================================================
   Twitter / X Style Emoji Picker for Comments
   ========================================================================== */
.emoji-picker-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.emoji-trigger-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-red, #ff334b);
  transition: all 0.18s ease;
  line-height: 1;
}

.emoji-trigger-btn:hover {
  background: rgba(255, 51, 75, 0.12);
  transform: scale(1.08);
}

.emoji-trigger-btn svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent-red, #ff334b);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.emoji-popover {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  background: #11141e;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 51, 75, 0.2);
  padding: 0.5rem;
  width: 250px;
  z-index: 1050;
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  backdrop-filter: blur(12px);
  animation: emojiPopIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.emoji-popover.open {
  display: flex !important;
}

.emoji-popover-header {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted, #94a3b8);
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.emoji-popover-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.2rem;
  max-height: 155px;
  overflow-y: auto;
  padding: 0.2rem 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 51, 75, 0.4) transparent;
}

.emoji-popover-grid::-webkit-scrollbar {
  width: 4px;
}
.emoji-popover-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 51, 75, 0.4);
  border-radius: 4px;
}

.emoji-popover-grid .emoji-btn-yt {
  font-size: 1.05rem;
  padding: 0.22rem 0.15rem;
  border-radius: 6px;
  text-align: center;
  transition: all 0.1s ease;
  user-select: none;
  cursor: pointer;
  line-height: 1.2;
}

.emoji-popover-grid .emoji-btn-yt:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.18);
}




/* ==========================================================================
   UNIFORM CYBER ACTION BUTTONS (Consistent border, radius, height, hover)
   ========================================================================== */
.video-card .action-buttons,
.action-buttons {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: nowrap !important;
}

/* Base style for every button in the card */
.video-card .action-btn,
.action-btn {
  height: 32px !important;
  min-width: 32px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.035) !important;
  color: #94a3b8 !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  padding: 0 9px !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  cursor: pointer !important;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
  user-select: none !important;
  white-space: nowrap !important;
  margin: 0 !important;
}

/* Base icon behavior */
.video-card .action-btn .act-ico,
.action-btn .act-ico {
  width: 14px !important;
  height: 14px !important;
  fill: none !important;
  stroke: #94a3b8 !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
  transition: stroke 0.18s ease, transform 0.18s ease !important;
}

/* General button hover */
.video-card .action-btn:hover,
.action-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}
.video-card .action-btn:hover .act-ico,
.action-btn:hover .act-ico {
  stroke: #ffffff !important;
}

/* Vote Pill Group: Exactly matches other buttons */
.vote-pill-group {
  display: inline-flex !important;
  align-items: center !important;
  height: 32px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.035) !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  transition: border-color 0.18s ease, background 0.18s ease !important;
}

.vote-pill-group:hover {
  border-color: rgba(255, 255, 255, 0.22) !important;
}

.vote-pill-group .action-btn {
  background: transparent !important;
  border: none !important;
  border-radius: 7px !important;
  height: 30px !important;
  padding: 0 8px !important;
  color: #94a3b8 !important;
}

.vote-pill-sep {
  width: 1px !important;
  height: 14px !important;
  background: rgba(255, 255, 255, 0.12) !important;
}

/* Upvote states */
.action-btn.like-btn .like-count {
  color: #10b981 !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
}
.action-btn.like-btn .upvote-ico {
  stroke: #10b981 !important;
}
.action-btn.like-btn:hover {
  background: rgba(16, 185, 129, 0.12) !important;
}
.action-btn.like-btn:hover .upvote-ico {
  stroke: #34d399 !important;
}
.action-btn.like-btn.active-like {
  background: rgba(16, 185, 129, 0.2) !important;
}

/* Downvote states */
.action-btn.dislike-btn .dislike-count {
  color: #ff334b !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
}
.action-btn.dislike-btn .downvote-ico {
  stroke: #ff334b !important;
}
.action-btn.dislike-btn:hover {
  background: rgba(255, 51, 75, 0.12) !important;
}
.action-btn.dislike-btn:hover .downvote-ico {
  stroke: #ff556b !important;
}
.action-btn.dislike-btn.active-dislike {
  background: rgba(255, 51, 75, 0.2) !important;
}

/* Comments button & icon */
.action-btn.comment-toggle-btn .act-ico,
.action-btn.comment-toggle-btn .comment-ico {
  stroke: #ff334b !important;
}
.action-btn.comment-toggle-btn .comment-count {
  color: #ff334b !important;
  font-weight: 700 !important;
}
.action-btn.comment-toggle-btn:hover {
  background: rgba(255, 51, 75, 0.12) !important;
  border-color: rgba(255, 51, 75, 0.45) !important;
}
.action-btn.comment-toggle-btn:hover .act-ico,
.action-btn.comment-toggle-btn:hover .comment-ico {
  stroke: #ff556b !important;
  transform: scale(1.08) !important;
}
.action-btn.comment-toggle-btn:hover .comment-count {
  color: #ffffff !important;
}

/* AI Brief icon & subtle brand color */
.action-btn.ai-brief-btn .ai-ico {
  stroke: #94a3b8 !important;
}
.action-btn.ai-brief-btn:hover {
  border-color: rgba(255, 51, 75, 0.4) !important;
  background: rgba(255, 51, 75, 0.1) !important;
}
.action-btn.ai-brief-btn:hover .ai-ico {
  stroke: #ff334b !important;
}

/* Share hover */
.action-btn.share-btn:hover {
  border-color: rgba(56, 189, 248, 0.4) !important;
  background: rgba(56, 189, 248, 0.1) !important;
}
.action-btn.share-btn:hover .share-ico {
  stroke: #38bdf8 !important;
}

/* More options (...) button */
.action-btn.card-more-btn {
  width: 32px !important;
  padding: 0 !important;
}
.action-btn.card-more-btn .more-ico {
  stroke: #94a3b8 !important;
  fill: #94a3b8 !important;
}
.action-btn.card-more-btn:hover .more-ico {
  stroke: #ffffff !important;
  fill: #ffffff !important;
}

/* Smooth expansion label for desktop */
.action-btn .btn-label {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.22s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.18s ease, margin 0.18s ease;
  margin-left: 0;
  display: inline-block;
  vertical-align: middle;
  font-size: 0.76rem;
  color: inherit;
}
.action-btn:hover .btn-label,
.action-btn:focus-visible .btn-label {
  max-width: 75px;
  opacity: 1;
  margin-left: 2px;
}


/* ==========================================================================
   FORMATTED TEXT & COLLAPSIBLE "SEE MORE" (Descriptions & Comments)
   ========================================================================== */
.video-description,
.comment-text {
  white-space: pre-line !important;
  word-break: break-word !important;
  line-height: 1.6 !important;
}

/* Collapsible container for long descriptions */
.text-expand-container {
  position: relative;
  margin-bottom: 0.9rem;
}
.text-expand-content {
  overflow: hidden;
  position: relative;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.text-expand-content.is-clamped {
  max-height: 4.8em; /* Roughly 3 lines */
}
.text-expand-content.is-clamped::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: linear-gradient(to bottom, transparent, rgba(14, 17, 27, 0.95));
  pointer-events: none;
}
.text-expand-btn {
  background: transparent;
  border: none;
  color: #ff334b;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0 0 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  transition: color 0.15s ease;
}
.text-expand-btn:hover {
  color: #ff556b;
  text-decoration: underline;
}


/* ==========================================================================
   COMPACT NO-SCROLL UPLOAD MODAL
   ========================================================================== */
#uploadModal .modal-box {
  max-width: 530px !important;
  max-height: 96vh !important;
  padding: 1rem 1.25rem 0.85rem !important;
  overflow: hidden !important; /* Eliminate modal scrollbar */
}

#uploadModal .modal-title {
  font-size: 1.12rem !important;
  margin-bottom: 0.15rem !important;
}

#uploadModal #uploaderStatusBadge {
  margin-bottom: 0.45rem !important;
  padding: 0.35rem 0.65rem !important;
  font-size: 0.74rem !important;
}

#uploadModal .file-dropzone {
  padding: 0.65rem 0.6rem !important;
  border-radius: 10px !important;
}

#uploadModal .drop-icon-circle {
  width: 34px !important;
  height: 34px !important;
  margin: 0 auto 0.25rem !important;
}

#uploadModal .drop-svg {
  width: 17px !important;
  height: 17px !important;
}

#uploadModal .drop-main-text {
  font-size: 0.82rem !important;
  margin-top: 0.1rem !important;
}

#uploadModal .drop-sub-text {
  font-size: 0.68rem !important;
  margin-top: 0.15rem !important;
}

#uploadModal #fileNameDisplay {
  font-size: 0.8rem !important;
  margin-top: 0.1rem !important;
}

#uploadModal .form-group {
  margin-bottom: 0.42rem !important;
}

#uploadModal .form-label {
  font-size: 0.74rem !important;
  margin-bottom: 0.15rem !important;
}

#uploadModal .form-input,
#uploadModal .form-select {
  padding: 0.36rem 0.65rem !important;
  font-size: 0.8rem !important;
  height: 34px !important;
}

#uploadModal .form-textarea {
  padding: 0.5rem 0.75rem !important;
  font-size: 0.82rem !important;
  min-height: 84px !important;
  height: 84px !important;
  line-height: 1.45 !important;
  resize: vertical !important;
}
#uploadModal .modal-box {
  max-height: 98vh !important;
  overflow-y: auto !important; /* Gentle scroll only if screen is tiny */
  scrollbar-width: thin !important;
}

#uploadModal .vis-option {
  padding: 0.4rem 0.65rem !important;
  border-radius: 8px !important;
}

#uploadModal .vis-option strong {
  font-size: 0.78rem !important;
}

#uploadModal .vis-option small {
  font-size: 0.66rem !important;
  line-height: 1.2 !important;
}

#uploadModal .btn-upload,
#uploadModal button[type="submit"] {
  padding: 0.52rem !important;
  font-size: 0.84rem !important;
  margin-top: 0.2rem !important;
}

#uploadModal .form-check {
  margin-bottom: 0.35rem !important;
  font-size: 0.75rem !important;
}

#uploadModal small[style*="var(--text-muted)"] {
  font-size: 0.68rem !important;
}


/* ==========================================================================
   TIGHT COMPACT SEE MORE & TIGHTER VIDEO CARD PADDING
   ========================================================================== */
.video-info {
  padding: 0.9rem 1.1rem 0.75rem !important;
}

.video-description {
  margin-bottom: 0.35rem !important;
  font-size: 0.85rem !important;
  line-height: 1.45 !important;
}

.text-expand-container {
  margin-bottom: 0.35rem !important;
}

.text-expand-content.is-clamped {
  max-height: 2.85em !important; /* Exactly 2 compact lines */
}

.text-expand-content.is-clamped::after {
  height: 18px !important;
  background: linear-gradient(to bottom, transparent, rgba(14, 17, 27, 0.98)) !important;
}

.text-expand-btn {
  font-size: 0.76rem !important;
  padding: 1px 0 !important;
  margin-top: 1px !important;
  line-height: 1 !important;
}

.video-footer {
  padding-top: 0.65rem !important;
  margin-top: 0.3rem !important;
}


/* ==========================================================================
   CLEAN ICON-ONLY HEADER BUTTONS (Radio, Members, Admin Hub)
   ========================================================================== */
.nav-radio-btn span,
.nav-members-btn span,
#modAdminLink span {
  display: none !important;
}

.nav-radio-btn,
.nav-members-btn,
#modAdminLink {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  padding: 0 !important;
  justify-content: center !important;
  align-items: center !important;
  border-radius: 9px !important;
  display: inline-flex !important;
}

.nav-radio-btn .nav-ico,
.nav-members-btn .nav-ico,
#modAdminLink .nav-ico {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
}


.text-expand-container.is-clamped-wrap {
  cursor: pointer;
}
.text-expand-container.is-clamped-wrap .text-expand-content {
  cursor: pointer;
}
