/* ===== TOWIBE — Rutube-style theme ===== */
:root {
  --bg: #0E0E14;
  --surface: #181820;
  --surface-2: #22222E;
  --surface-3: #2C2C3A;
  --border: rgba(255,255,255,0.05);
  --border-strong: rgba(255,255,255,0.12);
  --text: #FFFFFF;
  --text-dim: #9CA0AA;
  --text-mute: #5E5E70;
  --primary: #1E92FF;          /* Rutube blue */
  --premium1: #6E45FF;
  --premium2: #C24DFF;
  --r-md: 12px; --r-lg: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text);
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  font-size: 14px; -webkit-font-smoothing: antialiased; line-height: 1.4; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { background: none; border: 0; cursor: pointer; color: inherit; font: inherit; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--surface-3); }

/* === LAYOUT === */
.app { display: grid; grid-template-columns: 256px 1fr; grid-template-rows: 64px 1fr; min-height: 100vh; }
.header { grid-column: 1/3; background: var(--bg); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 20px; gap: 18px; position: sticky; top: 0; z-index: 100; }
.sidebar { background: var(--bg); padding: 12px 12px 24px; overflow-y: auto;
  height: calc(100vh - 64px); position: sticky; top: 64px; }
.main { padding: 20px 24px 60px; min-width: 0; }

/* === ICONS === */
.icon { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; fill: none; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 28px; height: 28px; }

/* === HEADER === */
.btn-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); color: var(--text); transition: background .15s; flex-shrink: 0; }
.btn-icon:hover { background: var(--surface-2); }

.logo { display: flex; align-items: baseline; gap: 4px; font-weight: 900;
  font-size: 22px; letter-spacing: -0.5px; }
.logo-text { color: white; }
.logo-dot { width: 7px; height: 7px; border-radius: 50%; background: #FF2E5E;
  display: inline-block; align-self: flex-start; margin-top: 4px; }

.search { flex: 1; max-width: 720px; margin: 0 auto; display: flex; align-items: center;
  background: var(--surface); border-radius: 24px; overflow: hidden; height: 44px; }
.search input { flex: 1; background: transparent; border: 0; padding: 0 22px; color: var(--text);
  font-size: 14px; outline: none; height: 100%; }
.search input::placeholder { color: var(--text-mute); }
.search button { padding: 0 18px; height: 100%; display: grid; place-items: center; color: var(--text-dim); }
.search button:hover { color: white; }

.header-actions { display: flex; gap: 10px; align-items: center; }
.btn-premium { display: flex; align-items: center; gap: 8px; padding: 0 16px; height: 40px;
  border-radius: 22px; background: linear-gradient(135deg, var(--premium1), var(--premium2));
  color: white; font-weight: 700; font-size: 13px; transition: filter .15s; }
.btn-premium:hover { filter: brightness(1.1); }
.btn-login { display: flex; align-items: center; padding: 0 24px; height: 40px;
  border-radius: 22px; background: white; color: black; font-weight: 700; font-size: 14px; }
.btn-login:hover { background: #e8e8e8; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); overflow: hidden;
  display: grid; place-items: center; font-weight: 700; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* === SIDEBAR === */
.nav-section { margin-bottom: 4px; padding-bottom: 4px; }
.nav-section + .nav-section { border-top: 1px solid var(--border); padding-top: 4px; }
.nav-item { display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 14px;
  font-size: 14px; transition: all .15s; margin: 2px 0; color: var(--text); font-weight: 500;
  border: 1.5px solid transparent; }
.nav-item:hover { background: var(--surface); }
.nav-item.active {
  background: rgba(30,146,255,0.08);
  border-color: var(--primary);
  color: white;
}
.nav-item .icon { stroke-width: 1.8; }

/* === SIDEBAR FOOTER === */
.sidebar-footer { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.sf-title { padding: 8px 14px 6px; color: var(--text-dim); font-size: 13px; font-weight: 600; }
.sf-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 8px 12px; }
.sf-chip { padding: 6px 12px; border-radius: 8px; background: var(--surface);
  font-size: 12px; font-weight: 500; cursor: pointer; transition: background .15s; }
.sf-chip:hover { background: var(--surface-2); }
.sf-socials { display: flex; gap: 6px; padding: 4px 8px 14px; }
.sf-soc { width: 36px; height: 36px; border-radius: 8px; background: var(--surface);
  display: grid; place-items: center; cursor: pointer; color: var(--text-dim); transition: all .15s; }
.sf-soc:hover { background: var(--surface-2); color: white; }
.sf-divider { height: 1px; background: var(--border); margin: 8px 8px; }
.sf-link { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 8px;
  font-size: 13px; color: var(--text-dim); cursor: pointer; transition: all .15s; }
.sf-link:hover { background: var(--surface); color: white; }
.sf-email { padding: 4px 14px 12px; font-size: 12px; color: var(--text-mute); }
.sf-mini { display: block; padding: 5px 14px; font-size: 12px; color: var(--text-dim);
  cursor: pointer; transition: color .15s; }
.sf-mini:hover { color: white; }
.sf-copy { padding: 16px 14px 4px; font-size: 11px; color: var(--text-mute); }

/* === TOP CATEGORY PILLS === */
.top-pills { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 16px; margin-bottom: 8px;
  scrollbar-width: none; }
.top-pills::-webkit-scrollbar { display: none; }
.top-pill { padding: 9px 18px; border-radius: 24px; background: transparent;
  border: 1px solid var(--border-strong); font-size: 14px; font-weight: 600;
  white-space: nowrap; cursor: pointer; transition: all .15s; color: var(--text); }
.top-pill:hover { background: var(--surface); }
.top-pill.active { background: white; color: black; border-color: white; }

/* === HERO BANNER === */
.hero-banner { position: relative; aspect-ratio: 16/5.5; border-radius: var(--r-lg); overflow: hidden;
  margin-bottom: 24px; background: linear-gradient(135deg, #2a1a3d, #1a3a5a); }
.hero-banner img { width: 100%; height: 100%; object-fit: cover; }
.hero-banner-content { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 32px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7)); }
.hero-banner-tag { display: inline-block; padding: 4px 10px; background: var(--primary);
  color: white; border-radius: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; margin-bottom: 8px; }
.hero-banner-title { font-size: 28px; font-weight: 800; line-height: 1.2; margin-bottom: 6px; max-width: 600px; }
.hero-banner-sub { font-size: 14px; color: rgba(255,255,255,0.85); max-width: 500px; }

/* === VIDEO GRID === */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px 16px; }
.video-card { cursor: pointer; transition: transform .15s; }
.video-card:hover { transform: translateY(-2px); }
.video-thumb { position: relative; aspect-ratio: 16/9; border-radius: var(--r-md); overflow: hidden;
  background: var(--surface); margin-bottom: 10px; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-duration { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.85);
  padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 700; color: white; }
.video-age { position: absolute; bottom: 8px; left: 8px; background: rgba(0,0,0,0.7);
  color: white; padding: 2px 6px; border-radius: 4px; font-size: 10px; font-weight: 700; }
.video-meta { display: flex; gap: 10px; padding: 0 4px; }
.video-meta .avatar { flex-shrink: 0; width: 34px; height: 34px; }
.video-info { min-width: 0; flex: 1; }
.video-title { font-weight: 600; font-size: 14px; line-height: 1.3; color: white;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-channel { color: var(--text-dim); font-size: 12px; margin-top: 5px; transition: color .15s; }
.video-meta:hover .video-channel { color: white; }
.video-stats { color: var(--text-mute); font-size: 12px; margin-top: 2px; }

/* === CATEGORY CHIPS (in-page) === */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px; margin-bottom: 16px;
  scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { padding: 7px 14px; border-radius: 8px; background: var(--surface);
  font-size: 13px; font-weight: 500; white-space: nowrap; transition: all .15s;
  border: 1px solid transparent; cursor: pointer; }
.chip:hover { background: var(--surface-2); }
.chip.active { background: white; color: black; }

/* === WATCH PAGE === */
.watch { display: grid; grid-template-columns: 1fr 380px; gap: 24px; max-width: 1600px; }
.watch-title { font-size: 22px; font-weight: 700; line-height: 1.3; margin: 14px 0 10px; }
.channel-bar { display: flex; align-items: center; gap: 14px; padding: 12px 0; flex-wrap: wrap; }
.channel-bar .avatar { width: 44px; height: 44px; }
.channel-info { flex: 1; min-width: 0; }
.channel-name { font-weight: 600; font-size: 15px; color: white; display: flex; align-items: center; gap: 6px; }
.channel-meta { color: var(--text-dim); font-size: 12px; margin-top: 2px; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 22px;
  background: var(--surface); font-weight: 600; font-size: 13px; cursor: pointer; transition: all .15s;
  border: 0; color: white; }
.btn:hover { background: var(--surface-2); }
.btn.subscribe { background: var(--primary); color: white; }
.btn.subscribed { background: var(--surface); color: white; }
.btn.primary { background: var(--primary); color: white; }
.btn.primary:hover { filter: brightness(1.1); }
.like-group { display: flex; background: var(--surface); border-radius: 22px; overflow: hidden; }
.like-group .btn { border-radius: 0; background: transparent; padding: 8px 14px; }
.like-group .btn:first-child { border-right: 1px solid var(--border); }
.like-group .btn:hover { background: var(--surface-2); }
.video-desc { background: var(--surface); border-radius: var(--r-md); padding: 14px 16px; margin-top: 14px;
  white-space: pre-wrap; font-size: 13px; line-height: 1.55; }

/* === COMMENTS === */
.comments-section { margin-top: 24px; }
.comments-title { font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.comment-form { display: flex; gap: 12px; margin-bottom: 22px; align-items: center; }
.comment-form .avatar { width: 36px; height: 36px; flex-shrink: 0; }
.comment-form input { flex: 1; background: transparent; border: 0; border-bottom: 1px solid var(--border);
  padding: 8px 0; color: white; outline: none; font-size: 14px; }
.comment-form input:focus { border-bottom-color: var(--primary); }
.comment-form button[type=submit] { padding: 7px 16px; border-radius: 18px;
  background: var(--primary); color: white; font-weight: 700; cursor: pointer; }
.comment { display: flex; gap: 12px; margin-bottom: 16px; }
.comment .avatar { width: 36px; height: 36px; flex-shrink: 0; }
.comment-body { flex: 1; min-width: 0; }
.comment-head { font-size: 13px; }
.comment-head .username { font-weight: 700; }
.comment-head .time { color: var(--text-mute); margin-left: 8px; font-size: 12px; }
.comment-text { margin-top: 3px; font-size: 13px; line-height: 1.45; }
.comment-actions { display: flex; gap: 12px; margin-top: 6px; color: var(--text-dim); font-size: 12px; }
.comment-actions .icon { width: 14px; height: 14px; }

/* === RELATED === */
.related { display: flex; flex-direction: column; gap: 8px; }
.related-card { display: flex; gap: 10px; cursor: pointer; padding: 4px; border-radius: 8px; transition: background .15s; }
.related-card:hover { background: var(--surface); }
.related-thumb { width: 160px; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden;
  background: var(--surface); flex-shrink: 0; position: relative; }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-info { min-width: 0; padding-top: 2px; }
.related-title { font-size: 13px; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-channel { color: var(--text-dim); font-size: 11px; margin-top: 5px; }
.related-stats { color: var(--text-mute); font-size: 11px; }

/* === FORMS === */
.form-page { max-width: 520px; margin: 60px auto; padding: 0 20px; }
.form-card { background: var(--surface); border-radius: var(--r-lg); padding: 32px; }
.form-card h1 { font-size: 26px; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.4px; }
.form-card p.sub { color: var(--text-dim); margin-bottom: 24px; font-size: 14px; }
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; color: var(--text-dim); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; background: var(--surface-2); border: 1px solid transparent; border-radius: 12px;
  padding: 11px 14px; color: white; font-size: 14px; outline: none; font-family: inherit; transition: border-color .15s; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--primary); }
.form-field textarea { min-height: 90px; resize: vertical; }
.form-actions { margin-top: 22px; display: flex; gap: 12px; align-items: center; }
.form-actions .btn-submit { padding: 11px 24px; border-radius: 22px;
  background: var(--primary); color: white; font-weight: 700; font-size: 14px; cursor: pointer; transition: filter .15s; }
.form-actions .btn-submit:hover { filter: brightness(1.1); }
.error { color: #F43F5E; font-size: 12px; margin-top: 4px; }
.alert { padding: 11px 14px; background: rgba(244,63,94,0.12); border: 1px solid rgba(244,63,94,0.25);
  border-radius: 8px; color: #F43F5E; margin-bottom: 14px; font-size: 13px; }
.alert.success { background: rgba(30,146,255,0.12); border-color: rgba(30,146,255,0.3); color: var(--primary); }

/* === CHANNEL PAGE === */
.channel-banner { aspect-ratio: 6.2/1; background: linear-gradient(135deg, var(--primary), var(--premium2));
  border-radius: var(--r-lg); margin-bottom: 22px; overflow: hidden; }
.channel-header { display: flex; gap: 22px; align-items: center; padding: 0 8px 22px; flex-wrap: wrap; }
.channel-header .avatar { width: 92px; height: 92px; font-size: 32px; flex-shrink: 0; }
.channel-header-info { flex: 1; min-width: 220px; }
.channel-header-info h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.4px; }
.channel-header-info .meta { color: var(--text-dim); margin-top: 4px; font-size: 13px; }
.channel-header-info .bio { color: var(--text-dim); margin-top: 8px; font-size: 13px; line-height: 1.5; max-width: 600px; }

/* === ADMIN === */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 20px 0; }
.admin-side { background: var(--surface); border-radius: var(--r-md); padding: 12px 10px; height: fit-content; position: sticky; top: 80px; }
.admin-side .nav-item { font-size: 13px; padding: 9px 12px; }
.admin-content { background: var(--surface); border-radius: var(--r-md); padding: 24px; min-height: 60vh; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.stat-card { background: var(--surface-2); border-radius: var(--r-md); padding: 16px; }
.stat-card .label { color: var(--text-dim); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-card .val { font-size: 26px; font-weight: 800; margin-top: 4px; }
table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); font-size: 13px; }
table.data th { color: var(--text-dim); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
table.data tr:hover td { background: var(--surface-2); }
table.data img.thumb { width: 72px; aspect-ratio: 16/9; object-fit: cover; border-radius: 4px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.4px; }
.badge.ok { background: rgba(30,146,255,0.16); color: var(--primary); }
.badge.warn { background: rgba(245,158,11,0.16); color: #F59E0B; }
.badge.bad { background: rgba(244,63,94,0.16); color: #F43F5E; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .app { grid-template-columns: 72px 1fr; }
  .sidebar .nav-text, .sidebar-footer { display: none; }
  .nav-item { justify-content: center; padding: 12px 4px; }
  .watch { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main { padding: 16px; padding-bottom: 100px; }
  .header { padding: 0 12px; gap: 8px; }
  .btn-premium span, .btn-icon[title="Təhlükəsizlik"] { display: none; }
}

/* === NOTIFICATIONS & USER DROPDOWN === */
.notif-bell { position: relative; }
.notif-badge { position: absolute; top: 2px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--primary); color: white; font-size: 10px; font-weight: 800;
  display: grid; place-items: center; border: 2px solid var(--bg); }
.nav-badge { margin-left: auto; min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px;
  background: var(--primary); color: white; font-size: 10px; font-weight: 800;
  display: inline-grid; place-items: center; }

.user-menu { position: relative; }
.user-menu .avatar { display: block; }
.user-dropdown { position: absolute; top: 100%; right: 0; margin-top: 8px; min-width: 240px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 6px; display: none; z-index: 100;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4); }
.user-menu:hover .user-dropdown,
.user-menu:focus-within .user-dropdown { display: block; }
.user-dropdown a, .user-dropdown button { display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px; font-size: 13px; font-weight: 600;
  color: white; width: 100%; background: transparent; border: 0; cursor: pointer;
  font-family: inherit; text-align: left; }
.user-dropdown a:hover, .user-dropdown button:hover { background: var(--surface-2); }
.user-dropdown .icon { color: var(--text-dim); }
.ud-divider { height: 1px; background: var(--border); margin: 6px 0; }
.ud-badge { margin-left: auto; min-width: 18px; padding: 1px 6px; border-radius: 9px;
  background: var(--primary); color: white; font-size: 10px; font-weight: 800;
  display: inline-grid; place-items: center; }

.nav-section-title { font-size: 11px; font-weight: 800; letter-spacing: 0.6px;
  color: var(--text-mute); text-transform: uppercase; padding: 6px 12px 4px;
  margin-bottom: 2px; }
@media (max-width: 1024px) {
  .nav-section-title, .nav-badge, .ud-badge { display: none; }
}

/* === LANGUAGE SWITCHER === */
.lang-menu { position: relative; }
.lang-trigger { display: inline-flex; align-items: center; gap: 4px; width: auto !important; padding: 0 10px !important; }
.lang-code { font-size: 11px; font-weight: 800; letter-spacing: 0.4px; color: var(--text-dim); }
.lang-trigger:hover .lang-code { color: white; }
.lang-dropdown { position: absolute; top: 100%; right: 0; margin-top: 8px; min-width: 200px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 6px; display: none; z-index: 100;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4); }
.lang-menu:hover .lang-dropdown,
.lang-menu:focus-within .lang-dropdown { display: block; }
.lang-dropdown form { display: block; margin: 0; }
.lang-item { display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px; font-size: 13px; font-weight: 600;
  color: white; width: 100%; background: transparent; border: 0; cursor: pointer;
  font-family: inherit; text-align: left; }
.lang-item:hover { background: var(--surface-2); }
.lang-item.active { color: var(--primary, #1E92FF); }
.lang-flag { font-size: 18px; }
.lang-check { margin-left: auto; color: var(--primary, #1E92FF); }

/* === GLOBAL MODALS (used across watch / channel / playlist / etc.) === */
.tw-modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.tw-modal.open { display: flex; }
.tw-modal-back { position: absolute; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); }
.tw-modal-card { position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 24px; max-width: 480px; width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  max-height: 90vh; overflow-y: auto; }
.tw-modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.tw-modal-head h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.3px; margin: 0; }
.tw-modal-close { background: transparent; border: 0; color: var(--text-dim); cursor: pointer;
  padding: 4px; border-radius: 50%; display: grid; place-items: center; transition: all .15s; }
.tw-modal-close:hover { background: var(--surface-2); color: white; }

/* Share grid */
.share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.share-tile { display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 6px; border-radius: 12px; background: var(--bg);
  color: white; transition: all .15s; text-decoration: none; }
.share-tile:hover { background: var(--c, var(--surface-2)); color: white; transform: translateY(-2px); }
.share-tile .icon { width: 24px; height: 24px; color: var(--c); }
.share-tile:hover .icon { color: white; }
.share-tile span { font-size: 12px; font-weight: 700; }
.share-url { display: flex; gap: 8px; padding: 8px; background: var(--bg);
  border-radius: 10px; border: 1px solid var(--border); }
.share-url input { flex: 1; background: transparent; border: 0; color: var(--text-dim);
  font: inherit; font-size: 12px; outline: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; min-width: 0; }
.share-url .btn { flex-shrink: 0; padding: 8px 14px; font-size: 12px; height: auto; }
.share-embed { margin-top: 14px; }
.share-embed summary { font-size: 12px; color: var(--text-dim); cursor: pointer; font-weight: 600; }
.share-embed textarea { width: 100%; margin-top: 8px; background: var(--bg);
  border: 1px solid var(--border); color: var(--text-dim); border-radius: 8px;
  padding: 10px; font: inherit; font-size: 11px; font-family: ui-monospace, Menlo, monospace;
  resize: none; box-sizing: border-box; min-height: 60px; }

/* Report modal */
.report-intro { color: var(--text-dim); font-size: 13px; margin-bottom: 14px; }
.report-reasons { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.report-radio { display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: 10px; cursor: pointer; transition: background .15s; }
.report-radio:hover { background: var(--bg); }
.report-radio input { accent-color: var(--primary, #1E92FF); }
.rr-icon { color: var(--text-dim); display: grid; place-items: center; width: 22px; }
.rr-label { font-size: 13px; font-weight: 500; color: white; }
.report-radio:has(input:checked) { background: rgba(30,146,255,0.1); }
.report-radio:has(input:checked) .rr-icon, .report-radio:has(input:checked) .rr-label { color: var(--primary, #1E92FF); }
.tw-modal-card textarea[name="details"] { width: 100%; background: var(--bg); border: 1px solid var(--border);
  color: white; border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 13px;
  outline: none; box-sizing: border-box; resize: vertical; min-height: 70px; transition: border .15s; }
.tw-modal-card textarea[name="details"]:focus { border-color: var(--primary, #1E92FF); }
.report-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }
.report-actions .btn.primary { background: #F87171; color: white; }
.btn.primary { background: var(--primary, #1E92FF); color: white; border: 0; padding: 9px 18px;
  border-radius: 22px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: 13px; transition: filter .15s; text-decoration: none; }
.btn.primary:hover { filter: brightness(1.1); }
.btn.primary:disabled { opacity: 0.5; cursor: progress; }

/* Hashtag / mention / link */
.tx-tag, .tx-mention, .tx-link { color: var(--primary, #1E92FF); text-decoration: none; font-weight: 600; }
.tx-tag:hover, .tx-mention:hover, .tx-link:hover { text-decoration: underline; }

/* === MENU HOVER-GAP FIX (click + invisible bridge) === */
/* Override hover-only behavior for header dropdowns */
.user-menu .user-dropdown,
.lang-menu .lang-dropdown,
.more-menu .more-dropdown { margin-top: 0; padding-top: 8px;
  background-clip: padding-box;
  display: none !important; }
.user-menu.open .user-dropdown,
.lang-menu.open .lang-dropdown,
.more-menu.open .more-dropdown { display: block !important; }
/* Disable the old hover-open so it doesn't compete with click */
.user-menu:hover .user-dropdown,
.user-menu:focus-within .user-dropdown,
.lang-menu:hover .lang-dropdown,
.lang-menu:focus-within .lang-dropdown { display: none; }
/* Re-enable for .open */
.user-menu.open .user-dropdown,
.lang-menu.open .lang-dropdown { display: block; }

.user-dropdown form { display: block; margin: 0; }
