/* ============================================
   RANDOM BROWSER — СТИЛИ
   ============================================ */

/* ============ ТУЛБАР БРАУЗЕРА ============ */
.browser-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  background: #c0c0c0;
  border-bottom: 2px solid #808080;
  flex-shrink: 0;
}

.browser-nav-btn {
  background: #c0c0c0;
  border: 2px solid;
  border-color: #fff #808080 #808080 #fff;
  width: 28px;
  height: 26px;
  font-size: 13px;
  line-height: 22px;
  text-align: center;
  color: #000;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  flex-shrink: 0;
}
.browser-nav-btn:hover:not(:disabled) { background: #d4d4d4; }
.browser-nav-btn:active:not(:disabled) { border-color: #808080 #fff #fff #808080; }
.browser-nav-btn:disabled { opacity: 0.4; cursor: default; }

.browser-address-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
  padding: 0 6px;
  height: 26px;
  min-width: 0;
}

.browser-lock { font-size: 11px; flex-shrink: 0; }

.browser-address {
  flex: 1;
  border: none;
  outline: none;
  font-family: "Courier New", monospace;
  font-size: 12px;
  height: 100%;
  background: transparent;
  min-width: 0;
}

.browser-go-btn {
  background: #c0c0c0;
  border: 2px solid;
  border-color: #fff #808080 #808080 #fff;
  height: 26px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  flex-shrink: 0;
}
.browser-go-btn:active { border-color: #808080 #fff #fff #808080; }

.browser-content {
  flex: 1;
  background: #fff;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  position: relative;
}

.browser-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 8px;
  background: #c0c0c0;
  border-top: 2px solid #fff;
  font-size: 11px;
  color: #333;
  flex-shrink: 0;
}

.browser-statusbar-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.browser-spinner {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 2px solid #808080;
  border-top-color: #000080;
  border-radius: 50%;
  animation: browserSpin 0.6s linear infinite;
}
@keyframes browserSpin { to { transform: rotate(360deg); } }

/* ============ ПАНЕЛЬ БЫСТРЫХ ССЫЛОК ============ */
.browser-quickbar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px 6px;
  background: #d4d4d4;
  border-bottom: 1px solid #808080;
  overflow-x: auto;
  overflow-y: hidden;
  flex-shrink: 0;
  height: 34px;
}
.browser-quickbar::-webkit-scrollbar { height: 4px; }
.browser-quickbar::-webkit-scrollbar-thumb { background: #808080; }

.browser-quick-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  font-size: 11px;
  font-weight: bold;
  color: #000;
  flex-shrink: 0;
  transition: all 0.1s;
  user-select: none;
  white-space: nowrap;
  font-family: inherit;
}
.browser-quick-item:hover {
  background: #e8e8e8;
  border-color: #fff #808080 #808080 #fff;
}
.browser-quick-item:active {
  border-color: #808080 #fff #fff #808080;
  transform: translate(1px, 1px);
}

.browser-quick-icon {
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.browser-quick-label { font-size: 11px; }

.browser-quick-divider {
  width: 1px;
  height: 20px;
  background: #808080;
  border-right: 1px solid #fff;
  margin: 0 4px;
  flex-shrink: 0;
}

/* ============ ФЕЙК: YOUTUBE ============ */
.fyt-page {
  font-family: Roboto, Arial, sans-serif;
  background: #f9f9f9;
  min-height: 100%;
  color: #0f0f0f;
}

.fyt-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 8px 20px;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}

.fyt-logo {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: -1px;
}

.fyt-logo-icon { color: #ff0000; font-size: 26px; }

.fyt-search {
  flex: 1;
  max-width: 400px;
  height: 32px;
  border: 1px solid #ccc;
  border-radius: 16px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 13px;
  background: #fff;
}
.fyt-search:focus { outline: none; border-color: #065fd4; }

.fyt-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 13px;
  flex-shrink: 0;
}

.fyt-body { padding: 24px 20px; max-width: 1100px; margin: 0 auto; }

.fyt-banner {
  background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
  color: #fff;
  padding: 18px 24px;
  border-radius: 12px;
  margin-bottom: 24px;
}
.fyt-banner h2 { margin: 0 0 4px; font-size: 20px; }
.fyt-banner p { margin: 0; font-size: 13px; opacity: 0.9; }

.fyt-section-title { font-size: 18px; font-weight: bold; margin: 0 0 16px; }

.fyt-channels {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.fyt-channel {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid #e5e5e5;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.fyt-channel:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.fyt-channel-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  flex-shrink: 0;
}

.fyt-channel-info { flex: 1; min-width: 0; }

.fyt-channel-name { font-weight: bold; font-size: 14px; margin: 0 0 4px; }
.fyt-channel-desc { font-size: 12px; color: #606060; margin: 0 0 6px; line-height: 1.4; }
.fyt-channel-subs { font-size: 11px; color: #909090; }

/* Страница канала */
.fyt-ch-page { background: #fff; }

.fyt-ch-banner { height: 120px; background: linear-gradient(135deg, #667eea, #764ba2); }

.fyt-ch-header {
  padding: 20px 24px 16px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  border-bottom: 1px solid #e5e5e5;
}

.fyt-ch-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #fff;
  flex-shrink: 0;
  border: 4px solid #fff;
  margin-top: -55px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.fyt-ch-info { flex: 1; min-width: 0; padding-top: 4px; }
.fyt-ch-name { font-size: 24px; font-weight: bold; margin: 0 0 6px; }
.fyt-ch-stats { font-size: 13px; color: #606060; margin-bottom: 10px; }
.fyt-ch-desc { font-size: 13px; color: #606060; line-height: 1.5; margin-bottom: 14px; max-width: 600px; }

.fyt-ch-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.fyt-btn {
  padding: 8px 18px;
  border-radius: 18px;
  border: none;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  font-family: inherit;
}
.fyt-btn-sub { background: #0f0f0f; color: #fff; }
.fyt-btn-sub:hover { background: #333; }
.fyt-btn-sub.subscribed { background: #e5e5e5; color: #0f0f0f; }
.fyt-btn-secondary { background: #f2f2f2; color: #0f0f0f; }
.fyt-btn-secondary:hover { background: #e5e5e5; }

.fyt-ch-tabs {
  display: flex;
  gap: 24px;
  padding: 0 24px;
  border-bottom: 1px solid #e5e5e5;
}

.fyt-ch-tab {
  padding: 12px 0;
  font-size: 14px;
  font-weight: bold;
  color: #606060;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.fyt-ch-tab.active { color: #0f0f0f; border-bottom-color: #0f0f0f; }

.fyt-ch-empty { text-align: center; padding: 60px 20px; color: #909090; }
.fyt-ch-empty-icon { font-size: 48px; margin-bottom: 12px; }
.fyt-ch-empty-text { font-size: 14px; }

/* ============ ФЕЙК: TWITCH ============ */
.ftv-page {
  font-family: Roobert, Inter, Arial, sans-serif;
  background: #0e0e10;
  color: #efeff1;
  min-height: 100%;
}

.ftv-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  background: #18181b;
  border-bottom: 1px solid #26262c;
}

.ftv-logo { color: #9146FF; font-weight: bold; font-size: 20px; display: flex; align-items: center; gap: 6px; }

.ftv-nav { display: flex; gap: 20px; margin-left: 20px; font-size: 13px; }
.ftv-nav-item { color: #adadb8; cursor: pointer; padding: 4px 0; }
.ftv-nav-item.active { color: #efeff1; font-weight: bold; }

.ftv-body { padding: 24px 20px; max-width: 1200px; margin: 0 auto; }
.ftv-section-title { font-size: 18px; font-weight: bold; margin-bottom: 16px; }

.ftv-streams {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.ftv-stream {
  background: #18181b;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s;
}
.ftv-stream:hover { transform: translateY(-3px); }

.ftv-stream-preview {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #2a1a4a, #4a1a6a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: #9146FF;
  position: relative;
}

.ftv-live-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #eb0400;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
}

.ftv-stream-info { padding: 12px; }
.ftv-stream-channel { font-weight: bold; font-size: 14px; margin-bottom: 3px; }
.ftv-stream-title { font-size: 12px; color: #adadb8; line-height: 1.4; margin-bottom: 6px; }
.ftv-stream-meta { font-size: 11px; color: #53535f; }

/* ============ ФЕЙК: DISCORD ============ */
.fdc-page {
  font-family: gg sans, Whitney, Arial, sans-serif;
  background: #313338;
  color: #dbdee1;
  min-height: 100%;
}

.fdc-header { padding: 16px 24px; background: #5865F2; color: #fff; }
.fdc-header h2 { margin: 0 0 4px; font-size: 18px; }
.fdc-header p { margin: 0; font-size: 13px; opacity: 0.9; }

.fdc-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; }

.fdc-server {
  background: #2b2d31;
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.fdc-server:hover { background: #35373c; }

.fdc-server-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5865F2, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  flex-shrink: 0;
}

.fdc-server-info { flex: 1; min-width: 0; }
.fdc-server-name { font-weight: bold; font-size: 15px; color: #f2f3f5; margin-bottom: 3px; }
.fdc-server-desc { font-size: 12px; color: #b5bac1; }
.fdc-server-meta { font-size: 11px; color: #949ba4; margin-top: 4px; display: flex; align-items: center; gap: 4px; }

.fdc-online-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #23a55a;
}

.fdc-btn-join {
  padding: 8px 16px;
  background: #5865F2;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
}
.fdc-btn-join:hover { background: #4752c4; }

/* ============ ФЕЙК: TELEGRAM ============ */
.ftg-page {
  font-family: Roboto, Arial, sans-serif;
  background: #fff;
  color: #000;
  min-height: 100%;
}

.ftg-header { padding: 14px 20px; background: #0088cc; color: #fff; display: flex; align-items: center; gap: 12px; }
.ftg-logo { font-size: 20px; font-weight: bold; }

.ftg-body { padding: 20px; max-width: 800px; margin: 0 auto; }
.ftg-section-title { font-size: 16px; font-weight: bold; margin-bottom: 14px; color: #0088cc; }

.ftg-channels { display: flex; flex-direction: column; gap: 10px; }

.ftg-channel {
  padding: 14px 16px;
  background: #f0f8ff;
  border: 1px solid #cce4f7;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.15s;
}
.ftg-channel:hover { background: #e0f0ff; transform: translateX(4px); }

.ftg-channel-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0088cc, #00a0e0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  flex-shrink: 0;
}

.ftg-channel-info { flex: 1; min-width: 0; }
.ftg-channel-name { font-weight: bold; font-size: 14px; margin-bottom: 3px; color: #000; }
.ftg-channel-desc { font-size: 12px; color: #666; }
.ftg-channel-subs { font-size: 11px; color: #0088cc; margin-top: 3px; font-weight: bold; }

/* ============ ОШИБКА ПОДКЛЮЧЕНИЯ ============ */
.ferr-page {
  text-align: center;
  padding: 50px 24px 40px;
  background: #fff;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ferr-icon { font-size: 72px; margin-bottom: 20px; }
.ferr-title {
  font-size: 22px;
  font-weight: bold;
  color: #000080;
  margin: 0 0 14px;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
}
.ferr-text {
  font-size: 13px;
  color: #333;
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 10px;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
}
.ferr-url {
  font-family: "Courier New", monospace;
  font-size: 12px;
  color: #800000;
  background: #f0f0f0;
  padding: 2px 8px;
  border: 1px solid #808080;
  border-radius: 2px;
  word-break: break-all;
  display: inline-block;
  margin: 4px 0;
}
.ferr-code { font-size: 11px; color: #808080; margin: 20px 0 16px; font-family: "Courier New", monospace; }

.ferr-btn {
  background: #c0c0c0;
  border: 2px solid;
  border-color: #fff #808080 #808080 #fff;
  padding: 6px 20px;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 12px;
  font-weight: bold;
  color: #000;
  cursor: pointer;
}
.ferr-btn:active { border-color: #808080 #fff #fff #808080; }
.ferr-btn-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* ============ МОБИЛЬНАЯ АДАПТАЦИЯ ============ */
@media (max-width: 640px) {
  .browser-nav-btn { width: 26px; height: 24px; font-size: 12px; line-height: 20px; }
  .browser-address-wrap, .browser-go-btn { height: 24px; }
  .browser-go-btn { padding: 0 8px; font-size: 10px; }

  .browser-quickbar { height: 32px; padding: 2px 4px; }
  .browser-quick-item { padding: 3px 7px; font-size: 10px; }
  .browser-quick-icon { font-size: 13px; width: 14px; height: 14px; }
  .browser-quick-label { font-size: 10px; }

  .fyt-header { padding: 8px 12px; gap: 10px; }
  .fyt-logo { font-size: 16px; }
  .fyt-logo-icon { font-size: 22px; }
  .fyt-search { max-width: none; }
  .fyt-body { padding: 16px 12px; }
  .fyt-channels { grid-template-columns: 1fr; }
  .fyt-ch-header { flex-direction: column; align-items: center; text-align: center; }
  .fyt-ch-avatar { margin-top: -55px; }
  .fyt-ch-actions { justify-content: center; }
  .fyt-ch-tabs { justify-content: center; padding: 0 12px; }

  .ftv-header { padding: 10px 14px; gap: 10px; }
  .ftv-nav { display: none; }
  .ftv-body { padding: 16px 12px; }
  .ftv-streams { grid-template-columns: 1fr; }

  .fdc-header { padding: 14px 16px; }
  .fdc-body { padding: 16px; }
  .fdc-server { padding: 12px; gap: 10px; }
  .fdc-server-icon { width: 40px; height: 40px; font-size: 18px; }
  .fdc-btn-join { padding: 6px 12px; font-size: 12px; }

  .ferr-page { padding: 40px 20px; }
  .ferr-icon { font-size: 56px; }
  .ferr-title { font-size: 18px; }
  .ferr-text { font-size: 12px; }
}